Skip to contentSkip to conversation

Add support for LaCie NAS Network Space v2

PATCH Superseded Simon Guinot 2 participants 4 messages May 7, 2011 – May 11, 2011 Networking

v6 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

v6 cover Add support for LaCie NAS Network Space v2

This patch series adds support for Network Space v2 board and parents.

Changes for v2:
- netconsole: restore NetOurIP check
- add entries to MAINTAINERS file
- move boards from root Makefile to boards.cfg
- move MACH_TYPE definition into netspace_v2.h
- remove CONFIG_SYS_HZ redefinition
- turn PHY initialization message into debug()

Changes for v3:
- drop patch for Macronix MX25L4005A
- rewrite patch "sf: disable write protection for Macronix flash", using the common spi flash code
- fix "Definitions" typo in mv-common.h
- netconsole: add a "/* Fall through */" comment before the NETCONS case label

Changes for v4:
- sf macronix: use spi_flash_cmd_write_enable()
- enhance commit message for patch "Add support for Network Space v2"

Changes for v5:
- add a changelog per patch

Changes for v6:
- drop accepted patches
- enable device tree support for netspace_v2
- clean some "#define" in netspace_v2.h
- enhance commit message for patch "Add support for Network Space v2":
provide description URL and mention SoC family
- rebase patch "Add support for Network Space v2" against u-boot-{arm,marvell}/master branches
- enhance commit message for patch "netconsole: remove `serverip' check"

Simon Guinot (2):
netconsole: remove `serverip' check
Add support for Network Space v2

 MAINTAINERS                           |    6 +
 board/LaCie/netspace_v2/Makefile      |   49 ++++++++++
 board/LaCie/netspace_v2/kwbimage.cfg  |  162 +++++++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.c |  144 +++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.h |   39 ++++++++
 boards.cfg                            |    3 +
 include/configs/netspace_v2.h         |  153 +++++++++++++++++++++++++++++++
 net/net.c                             |    3 +-
 8 files changed, 558 insertions(+), 1 deletions(-)
 create mode 100644 board/LaCie/netspace_v2/Makefile
 create mode 100644 board/LaCie/netspace_v2/kwbimage.cfg
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.c
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.h
 create mode 100644 include/configs/netspace_v2.h
#1 lore raw

PATCH v6 1/2 netconsole: remove `serverip' check

This patch allows to enable the netconsole even if `serverip' is not set.

Because netconsole use the environment variable ncip' to configure the destination IP, serverip' don't need to be defined.

---
Changes for v2:
- restore NetOurIP check

Changes for v3:
- add a "/* Fall through */" comment before the NETCONS case label

Changes for v4,5: none

Changes for v6:
- enhance commit message

 net/net.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
net/net.c +2 -1
index e50bdf1..19ac019 100644
@@ -1718,7 +1718,6 @@ static int net_check_prereq (proto_t protocol)
 #if defined(CONFIG_CMD_NFS)
 	case NFS:
 #endif
-	case NETCONS:
 	case TFTP:
 		if (NetServerIP == 0) {
 			puts ("*** ERROR: `serverip' not set\n");
@@ -1728,7 +1727,9 @@ static int net_check_prereq (proto_t protocol)
     defined(CONFIG_CMD_DNS)
     common:
 #endif
+		/* Fall through */
 
+	case NETCONS:
 		if (NetOurIP == 0) {
 			puts ("*** ERROR: `ipaddr' not set\n");
 			return (1);
Signature · 1 line
1.6.3.1
#2 lore raw

PATCH v6 2/2 Add support for Network Space v2

In reply to Simon Guinot

This patch add support for the Network Space v2 board and parents, based on the Marvell Kirkwood 6281 SoC. This include Network Space (Max) v2 and Internet Space v2.

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

---
Changes for v2:
- add entries to MAINTAINERS file
- move boards from root Makefile to boards.cfg
- move MACH_TYPE definition into netspace_v2.h
- remove CONFIG_SYS_HZ redefinition
- turn PHY initialization message into debug()

Changes for v3: none

Changes for v4:
- enhance commit message: add SoC information

Changes for v5: none

Changes for v6:
- enable device tree support
- clean some "#define" in netspace_v2.h
- enhance commit message: provide description URL and mention SoC family
- rebase against u-boot-{arm,marvell}/master branches

 MAINTAINERS                           |    6 +
 board/LaCie/netspace_v2/Makefile      |   49 ++++++++++
 board/LaCie/netspace_v2/kwbimage.cfg  |  162 +++++++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.c |  144 +++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.h |   39 ++++++++
 boards.cfg                            |    3 +
 include/configs/netspace_v2.h         |  153 +++++++++++++++++++++++++++++++
 7 files changed, 556 insertions(+), 0 deletions(-)
 create mode 100644 board/LaCie/netspace_v2/Makefile
 create mode 100644 board/LaCie/netspace_v2/kwbimage.cfg
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.c
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.h
 create mode 100644 include/configs/netspace_v2.h
MAINTAINERS +6 -0
index fc793f5..9d6c458 100644
@@ -646,6 +646,12 @@ Sedji Gaouaou<[email protected]>
 	at91sam9g10ek		ARM926EJS (AT91SAM9G10 SoC)
 	at91sam9m10g45ek	ARM926EJS (AT91SAM9G45 SoC)
 
+Simon Guinot <[email protected]>
+
+	inetspace_v2	ARM926EJS (Kirkwood SoC)
+	netspace_v2	ARM926EJS (Kirkwood SoC)
+	netspace_max_v2	ARM926EJS (Kirkwood SoC)
+
 Marius Gr?ger <[email protected]>
 
 	impa7		ARM720T (EP7211)
board/LaCie/netspace_v2/Makefile new file +49 -0

49 lines not on this page · raw message

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

162 lines not on this page · raw message

board/LaCie/netspace_v2/netspace_v2.c new file +144 -0

144 lines not on this page · raw message

board/LaCie/netspace_v2/netspace_v2.h new file +39 -0
new file mode 100644
index 0000000..c26a6e0
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2011 Simon Guinot <[email protected]>
+ *
+ * Based on Kirkwood support:
+ * (C) Copyright 2009
+ * Marvell Semiconductor <www.marvell.com>
+ * Written-by: Prafulla Wadaskar <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef NETSPACE_V2_H
+#define NETSPACE_V2_H
+
+#define NETSPACE_V2_OE_LOW		0x06004000
+#define NETSPACE_V2_OE_HIGH		0x00000031
+#define NETSPACE_V2_OE_VAL_LOW		0x10030000
+#define NETSPACE_V2_OE_VAL_HIGH		0x00000000
+
+/* PHY related */
+#define MV88E1116_LED_FCTRL_REG		10
+#define MV88E1116_CPRSP_CR3_REG		21
+#define MV88E1116_MAC_CTRL_REG		21
+#define MV88E1116_PGADR_REG		22
+#define MV88E1116_RGMII_TXTM_CTRL	(1 << 4)
+#define MV88E1116_RGMII_RXTM_CTRL	(1 << 5)
+
+#endif /* NETSPACE_V2_H */
boards.cfg +3 -0
index fd8ae8f..a1276a8 100644
@@ -104,6 +104,9 @@ davinci_schmoogie            arm         arm926ejs   schmoogie           davinci
 davinci_sffsdr               arm         arm926ejs   sffsdr              davinci        davinci
 davinci_sonata               arm         arm926ejs   sonata              davinci        davinci
 suen3                        arm         arm926ejs   km_arm              keymile        kirkwood
+inetspace_v2                 arm         arm926ejs   netspace_v2         LaCie          kirkwood    netspace_v2:INETSPACE_V2
+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
 guruplug                     arm         arm926ejs   -                   Marvell        kirkwood
 mv88f6281gtw_ge              arm         arm926ejs   -                   Marvell        kirkwood
 openrd_base                  arm         arm926ejs   openrd              Marvell        kirkwood        openrd:BOARD_IS_OPENRD_BASE
include/configs/netspace_v2.h new file +153 -0

153 lines not on this page · raw message

Signature · 1 line
1.6.3.1
#3 lore raw

v6 cover Add support for LaCie NAS Network Space v2

In reply to Simon Guinot

Hi Albert,

Please, consider applying this two patches.

Thanks in advance,

Simon

Quoted 40 lines · Simon Guinot

This patch series adds support for Network Space v2 board and parents.

Changes for v2:
- netconsole: restore NetOurIP check
- add entries to MAINTAINERS file
- move boards from root Makefile to boards.cfg
- move MACH_TYPE definition into netspace_v2.h
- remove CONFIG_SYS_HZ redefinition
- turn PHY initialization message into debug()

Changes for v3:
- drop patch for Macronix MX25L4005A
- rewrite patch "sf: disable write protection for Macronix flash", using the common spi flash code
- fix "Definitions" typo in mv-common.h
- netconsole: add a "/* Fall through */" comment before the NETCONS case label

Changes for v4:
- sf macronix: use spi_flash_cmd_write_enable()
- enhance commit message for patch "Add support for Network Space v2"

Changes for v5:
- add a changelog per patch

Changes for v6:
- drop accepted patches
- enable device tree support for netspace_v2
- clean some "#define" in netspace_v2.h
- enhance commit message for patch "Add support for Network Space v2":
provide description URL and mention SoC family
- rebase patch "Add support for Network Space v2" against u-boot-{arm,marvell}/master branches
- enhance commit message for patch "netconsole: remove `serverip' check"

Simon Guinot (2):
netconsole: remove `serverip' check
Add support for Network Space v2

Quoted 14 lines
 MAINTAINERS                           |    6 +
 board/LaCie/netspace_v2/Makefile      |   49 ++++++++++
 board/LaCie/netspace_v2/kwbimage.cfg  |  162 +++++++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.c |  144 +++++++++++++++++++++++++++++
 board/LaCie/netspace_v2/netspace_v2.h |   39 ++++++++
 boards.cfg                            |    3 +
 include/configs/netspace_v2.h         |  153 +++++++++++++++++++++++++++++++
 net/net.c                             |    3 +-
 8 files changed, 558 insertions(+), 1 deletions(-)
 create mode 100644 board/LaCie/netspace_v2/Makefile
 create mode 100644 board/LaCie/netspace_v2/kwbimage.cfg
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.c
 create mode 100644 board/LaCie/netspace_v2/netspace_v2.h
 create mode 100644 include/configs/netspace_v2.h

-------------- 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/20110511/836bc7c2/attachment.pgp