Skip to contentSkip to conversation

LaCie 2Big Network v2 support

PATCH Superseded Simon Guinot 2 participants 6 messages Nov 1, 2011 – Nov 2, 2011 Block layer

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover LaCie 2Big Network v2 support

From: Simon Guinot <[email protected]>

This patch series provides support for the LaCie NAS 2Big Network v2.

Simon Guinot (2):
mvsata: fix ide_preinit for missing disks
ARM: add support for LaCie 2Big Network v2

 MAINTAINERS                         |    1 +
 board/LaCie/net2big_v2/Makefile     |   49 +++++++++
 board/LaCie/net2big_v2/kwbimage.cfg |  162 ++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.c |  188 +++++++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.h |   43 ++++++++
 boards.cfg                          |    1 +
 drivers/block/mvsata_ide.c          |   14 ++-
 include/configs/net2big_v2.h        |  161 ++++++++++++++++++++++++++++++
 8 files changed, 613 insertions(+), 6 deletions(-)
 create mode 100644 board/LaCie/net2big_v2/Makefile
 create mode 100644 board/LaCie/net2big_v2/kwbimage.cfg
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.c
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.h
 create mode 100644 include/configs/net2big_v2.h
Signature · 1 line
1.7.5.1
#1 lore raw

PATCH 1/2 mvsata: fix ide_preinit for missing disks

From: Simon Guinot <[email protected]>

Consider that ide_preinit() succeed if at least one port is successfully initialized. This allows to iniatialize IDE support on a board with two SATA ports but a single hard disk available.

---
 drivers/block/mvsata_ide.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
drivers/block/mvsata_ide.c +8 -6
index 1be395f..c7357fc 100644
@@ -150,23 +150,25 @@ static int mvsata_ide_initialize_port(struct mvsata_port_registers *port)
 
 int ide_preinit(void)
 {
+	int ret = 1;
 	int status;
+
 	/* Enable ATA port 0 (could be SATA port 0 or 1) if declared */
 #if defined(CONFIG_SYS_ATA_IDE0_OFFSET)
 	status = mvsata_ide_initialize_port(
 		(struct mvsata_port_registers *)
 		(CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE0_OFFSET));
-	if (status)
-		return status;
+	if (status == MVSATA_STATUS_OK)
+		ret = 0;
 #endif
 	/* Enable ATA port 1 (could be SATA port 0 or 1) if declared */
 #if defined(CONFIG_SYS_ATA_IDE1_OFFSET)
 	status = mvsata_ide_initialize_port(
 		(struct mvsata_port_registers *)
 		(CONFIG_SYS_ATA_BASE_ADDR + CONFIG_SYS_ATA_IDE1_OFFSET));
-	if (status)
-		return status;
+	if (status == MVSATA_STATUS_OK)
+		ret = 0;
 #endif
-	/* return success if all ports initializations succeeded */
-	return MVSATA_STATUS_OK;
+	/* Return success if at least one port initialization succeeded */
+	return ret;
 }
Signature · 1 line
1.7.5.1
#2 lore raw

PATCH 1/2 mvsata: fix ide_preinit for missing disks

Quoted 28 lines

-----Original Message-----
From: Simon Guinot [mailto:simon at sequanux.org]
Sent: Tuesday, November 01, 2011 7:16 PM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Simon Guinot
Subject: [PATCH 1/2] mvsata: fix ide_preinit for missing disks

From: Simon Guinot <[email protected]>

Consider that ide_preinit() succeed if at least one port is successfully
initialized. This allows to iniatialize IDE support on a board with two
SATA ports but a single hard disk available.

---
 drivers/block/mvsata_ide.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)
drivers/block/mvsata_ide.c +0 -0
index 1be395f..c7357fc 100644

drivers/block/mvsata_ide.c static int · line 154

Quoted 5 lines
drivers/block/mvsata_ide.c +1 -0
@@ -150,23 +150,25 @@ static int
 mvsata_ide_initialize_port(struct mvsata_port_registers *port)
 
 int ide_preinit(void)
 {
+	int ret = 1;

Replace magic no 1 by MVSATA_STATUS_TIMEOUT

drivers/block/mvsata_ide.c static int mvsata_ide_initialize_port(struct mvsata_port_registers *port) · line 162

Quoted 13 lines
drivers/block/mvsata_ide.c +1 -0
 	int status;
+
 	/* Enable ATA port 0 (could be SATA port 0 or 1) if

declared */
#if defined(CONFIG_SYS_ATA_IDE0_OFFSET)

drivers/block/mvsata_ide.c +0 -0
 	status = mvsata_ide_initialize_port(
 		(struct mvsata_port_registers *)
 		(CONFIG_SYS_ATA_BASE_ADDR +

CONFIG_SYS_ATA_IDE0_OFFSET));

drivers/block/mvsata_ide.c +2 -2
-	if (status)
-		return status;
+	if (status == MVSATA_STATUS_OK)
+		ret = 0;

Replace magic no 0 by MVSATA_STATUS_OK

drivers/block/mvsata_ide.c static int mvsata_ide_initialize_port(struct mvsata_port_registers *port) · line 162

Quoted 12 lines

#endif
/* Enable ATA port 1 (could be SATA port 0 or 1) if
declared */
#if defined(CONFIG_SYS_ATA_IDE1_OFFSET)

drivers/block/mvsata_ide.c +0 -0
 	status = mvsata_ide_initialize_port(
 		(struct mvsata_port_registers *)
 		(CONFIG_SYS_ATA_BASE_ADDR +

CONFIG_SYS_ATA_IDE1_OFFSET));

drivers/block/mvsata_ide.c +2 -2
-	if (status)
-		return status;
+	if (status == MVSATA_STATUS_OK)
+		ret = 0;

Replace magic no 0 by MVSATA_STATUS_OK

drivers/block/mvsata_ide.c static int mvsata_ide_initialize_port(struct mvsata_port_registers *port) · line 173

Quoted 6 lines

#endif

drivers/block/mvsata_ide.c +1 -2
-	/* return success if all ports initializations succeeded */
-	return MVSATA_STATUS_OK;
+	/* Return success if at least one port initialization

succeeded */

drivers/block/mvsata_ide.c +1 -0
+	return ret;

Regards..
Prafulla . .

Quoted 3 lines

}
--
1.7.5.1

#3 lore raw

PATCH 2/2 ARM: add support for LaCie 2Big Network v2

In reply to Simon Guinot

From: Simon Guinot <[email protected]>

This patch adds support for the LaCie 2Big Network v2 board, based on the Marvell Kirkwood 6281 SoC.

Additional information is available at:
http://lacie-nas.org/doku.php?id=2big_network_v2

---
 MAINTAINERS                         |    1 +
 board/LaCie/net2big_v2/Makefile     |   49 +++++++++
 board/LaCie/net2big_v2/kwbimage.cfg |  162 ++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.c |  188 +++++++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.h |   43 ++++++++
 boards.cfg                          |    1 +
 include/configs/net2big_v2.h        |  161 ++++++++++++++++++++++++++++++
 7 files changed, 605 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/net2big_v2/Makefile
 create mode 100644 board/LaCie/net2big_v2/kwbimage.cfg
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.c
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.h
 create mode 100644 include/configs/net2big_v2.h
MAINTAINERS +1 -0
index 21d1fef..8c2b3a6 100644
@@ -649,6 +649,7 @@ Simon Guinot <[email protected]>
 	inetspace_v2	ARM926EJS (Kirkwood SoC)
 	netspace_v2	ARM926EJS (Kirkwood SoC)
 	netspace_max_v2	ARM926EJS (Kirkwood SoC)
+	net2big_v2	ARM926EJS (Kirkwood SoC)
 
 Igor Grinberg <[email protected]>
 
board/LaCie/net2big_v2/Makefile new file +49 -0

49 lines not on this page · raw message

board/LaCie/net2big_v2/kwbimage.cfg new file +162 -0

162 lines not on this page · raw message

board/LaCie/net2big_v2/net2big_v2.c new file +188 -0

188 lines not on this page · raw message

board/LaCie/net2big_v2/net2big_v2.h new file +43 -0

43 lines not on this page · raw message

boards.cfg +1 -0
index 17effc8..6bb567b 100644
@@ -138,6 +138,7 @@ km_kirkwood_pci              arm         arm926ejs   km_arm              keymile
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood
 portl2                       arm         arm926ejs   km_arm              keymile        kirkwood
 inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood    netspace_v2:INETSPACE_V2
+net2big_v2                   arm         arm926ejs   net2big_v2          LaCie          kirkwood
 netspace_v2                  arm         arm926ejs   netspace_v2         LaCie          kirkwood    netspace_v2:NETSPACE_V2
 netspace_max_v2              arm         arm926ejs   netspace_v2         LaCie          kirkwood    netspace_v2:NETSPACE_MAX_V2
 dreamplug                    arm         arm926ejs   -                   Marvell        kirkwood
include/configs/net2big_v2.h new file +161 -0

161 lines not on this page · raw message

Signature · 1 line
1.7.5.1
#4 lore raw

PATCH 2/2 ARM: add support for LaCie 2Big Network v2

Quoted 37 lines

-----Original Message-----
From: Simon Guinot [mailto:simon at sequanux.org]
Sent: Tuesday, November 01, 2011 7:16 PM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Simon Guinot
Subject: [PATCH 2/2] ARM: add support for LaCie 2Big Network v2

From: Simon Guinot <[email protected]>

This patch adds support for the LaCie 2Big Network v2 board, based on
the Marvell Kirkwood 6281 SoC.

Additional information is available at:
http://lacie-nas.org/doku.php?id=2big_network_v2

---
 MAINTAINERS                         |    1 +
 board/LaCie/net2big_v2/Makefile     |   49 +++++++++
 board/LaCie/net2big_v2/kwbimage.cfg |  162
++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.c |  188
+++++++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.h |   43 ++++++++
 boards.cfg                          |    1 +
 include/configs/net2big_v2.h        |  161
++++++++++++++++++++++++++++++
 7 files changed, 605 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/net2big_v2/Makefile
 create mode 100644 board/LaCie/net2big_v2/kwbimage.cfg
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.c
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.h
 create mode 100644 include/configs/net2big_v2.h

...snip...

Quoted 13 lines
boards.cfg +0 -0
index 17effc8..6bb567b 100644
@@ -138,6 +138,7 @@ km_kirkwood_pci              arm

arm926ejs km_arm keymile
mgcoge3un arm arm926ejs km_arm
keymile kirkwood
portl2 arm arm926ejs km_arm
keymile kirkwood
inetspace_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:INETSPACE_V2

Quoted 8 lines

+net2big_v2 arm arm926ejs
net2big_v2 LaCie kirkwood
netspace_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:NETSPACE_V2
netspace_max_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:NETSPACE_MAX_V2

How much is the delta for this board compared to other LaCie boards? Is kwbimage.cfg is copy paste from other boards that you have?

I mean can you manage to support this board with :NET2BIG_V2 here?

Regards..
Prafulla . . .

#5 lore raw

PATCH 2/2 ARM: add support for LaCie 2Big Network v2

Hi Prafulla,

Quoted 53 lines · Prafulla Wadaskar
Quoted 37 lines

-----Original Message-----
From: Simon Guinot [mailto:simon at sequanux.org]
Sent: Tuesday, November 01, 2011 7:16 PM
To: Prafulla Wadaskar
Cc: u-boot at lists.denx.de; Simon Guinot
Subject: [PATCH 2/2] ARM: add support for LaCie 2Big Network v2

From: Simon Guinot <[email protected]>

This patch adds support for the LaCie 2Big Network v2 board, based on
the Marvell Kirkwood 6281 SoC.

Additional information is available at:
http://lacie-nas.org/doku.php?id=2big_network_v2

---
 MAINTAINERS                         |    1 +
 board/LaCie/net2big_v2/Makefile     |   49 +++++++++
 board/LaCie/net2big_v2/kwbimage.cfg |  162
++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.c |  188
+++++++++++++++++++++++++++++++++++
 board/LaCie/net2big_v2/net2big_v2.h |   43 ++++++++
 boards.cfg                          |    1 +
 include/configs/net2big_v2.h        |  161
++++++++++++++++++++++++++++++
 7 files changed, 605 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/net2big_v2/Makefile
 create mode 100644 board/LaCie/net2big_v2/kwbimage.cfg
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.c
 create mode 100644 board/LaCie/net2big_v2/net2big_v2.h
 create mode 100644 include/configs/net2big_v2.h

...snip...

Quoted 15 lines
boards.cfg +0 -0
index 17effc8..6bb567b 100644
@@ -138,6 +138,7 @@ km_kirkwood_pci              arm

arm926ejs km_arm keymile
mgcoge3un arm arm926ejs km_arm
keymile kirkwood
portl2 arm arm926ejs km_arm
keymile kirkwood
inetspace_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:INETSPACE_V2
+net2big_v2 arm arm926ejs
net2big_v2 LaCie kirkwood

Quoted 8 lines
Quoted 6 lines

netspace_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:NETSPACE_V2
netspace_max_v2 arm arm926ejs
netspace_v2 LaCie kirkwood
netspace_v2:NETSPACE_MAX_V2

How much is the delta for this board compared to other LaCie boards? Is kwbimage.cfg is copy paste from other boards that you have?

There is some differences. For example, the RAM frequency is 400MHz for the net2big_v2 and 267MHz for the netspace_v2.

Quoted 2 lines

I mean can you manage to support this board with :NET2BIG_V2 here?

No, but I can factorize a lot of code. I am working on it.

Regards,

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111102/518349bd/attachment.pgp