Board support and feature for LaCie devices
v2 cover Board support and feature for LaCie devices
Changes for v2:
- Move board support and feature into a separate patch set.
- Move mach-types update into a separate patch.
Simon Guinot (4):
lacie_kw: add support for EFI partitions
ARM: add netspace_mini_v2 to mach-types.h
ARM: add support for Network Space v2 Lite and Mini
ARM: add support for d2 Network v2
arch/arm/include/asm/mach-types.h | 13 +++ board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 3 + include/configs/lacie_kw.h | 42 ++++++-- 7 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
Signature · 1 line
1.7.9.5
PATCH v2 1/4 lacie_kw: add support for EFI partitions
Defines CONFIG_EFI_PARTITION for LaCie boards.
Additionally this patch defines CONFIG_DOS_PARTITION. Note that this definition is implicit in mv_common.h when CONFIG_CMD_USB is enabled.
---
No changes for v2.
include/configs/lacie_kw.h | 6 ++++++ 1 file changed, 6 insertions(+)
include/configs/lacie_kw.h +6 -0
@@ -130,6 +130,12 @@#endif /* CONFIG_CMD_I2C */ /* +* Partition support +*/ +#define CONFIG_DOS_PARTITION +#define CONFIG_EFI_PARTITION + +/* * File systems support */ #define CONFIG_CMD_EXT2
Signature · 1 line
1.7.9.5
PATCH v2 2/4 ARM: add netspace_mini_v2 to mach-types.h
In reply to Simon GuinotThis patch adds the Network Space Mini v2 machine to mach-types.h.
--- arch/arm/include/asm/mach-types.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)
arch/arm/include/asm/mach-types.h +13 -0
@@ -471,6 +471,7 @@ extern unsigned int __machine_arch_type;#define MACH_TYPE_EUKREA_CPUIMX35SD 2821#define MACH_TYPE_EUKREA_CPUIMX51SD 2822#define MACH_TYPE_EUKREA_CPUIMX51 2823 +#define MACH_TYPE_NETSPACE_MINI_V2 2831#define MACH_TYPE_SMDKC210 2838#define MACH_TYPE_OMAP3_BRAILLO 2839#define MACH_TYPE_SPYPLUG 2840
@@ -6614,6 +6615,18 @@ extern unsigned int __machine_arch_type;# define machine_is_eukrea_cpuimx51 () (0)#endif +#ifdef CONFIG_MACH_NETSPACE_MINI_V2 +# ifdef machine_arch_type +# undef machine_arch_type +# define machine_arch_type __machine_arch_type +# else +# define machine_arch_type MACH_TYPE_NETSPACE_MINI_V2 +# endif +# define machine_is_netspace_mini_v2 () (machine_arch_type == MACH_TYPE_NETSPACE_MINI_V2) +#else +# define machine_is_netspace_mini_v2 () (0) +#endif +#ifdef CONFIG_MACH_SMDKC210 # ifdef machine_arch_type# undef machine_arch_type
Signature · 1 line
1.7.9.5
PATCH v2 3/4 ARM: add support for Network Space v2 Lite and Mini
In reply to Simon GuinotThis patch adds support for the LaCie boards Network Space v2 (Lite and Mini). This two boards are derived from the Network Space v2 and a lot of hardware caracteristics are shared.
- CPU: Marvell 88F6192 800Mhz
- SDRAM memory: 128MB DDR2 200Mhz
- 1 SATA port: internal
- Gigabit ethernet: PHY Marvell 88E1318
- Flash memory: SPI NOR 512KB (Macronix MX25L4005A)
- i2c EEPROM: 512 bytes (24C04 type)
- 2 USB2 ports (Lite only): host and host/device
- 1 push button
- 1 SATA LED (bi-color, blue and red)
---
Changes for v2:
- Move mach-types update into a separate patch.
board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 2 + include/configs/lacie_kw.h | 26 ++++- 6 files changed, 224 insertions(+), 7 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
board/LaCie/common/common.c +33 -3
@@ -13,10 +13,11 @@#if defined(CONFIG_CMD_NET ) && defined(CONFIG_RESET_PHY_R ) +#define MII_MARVELL_PHY_PAGE 22 +#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)
@@ -31,15 +32,44 @@ void mv_phy_88e1116_init(const char *name, u16 phyaddr)* Enable RGMII delay on Tx and Rx for CPU port * Ref: sec 4.7.2 of chip datasheet */ -miiphy_write (name, phyaddr,MV88E1116_PGADR_REG ,2 ); +miiphy_write (name, phyaddr,MII_MARVELL_PHY_PAGE ,2 );miiphy_read (name, phyaddr,MV88E1116_MAC_CTRL_REG , ®); reg |= (MV88E1116_RGMII_RXTM_CTRL |MV88E1116_RGMII_TXTM_CTRL );miiphy_write (name, phyaddr,MV88E1116_MAC_CTRL_REG , reg); -miiphy_write (name, phyaddr,MV88E1116_PGADR_REG ,0 ); +miiphy_write (name, phyaddr,MII_MARVELL_PHY_PAGE ,0 );if (miiphy_reset (name, phyaddr) ==0 )printf ("88E1116 Initialized on %s\n" , name); } + +void mv_phy_88e1318_init (const char *name,u16 phyaddr) +{ +u16 reg; + +if (miiphy_set_current_dev (name)) +return ; + +/* +* Set control mode 4 for LED[0]. +*/ +miiphy_write (name, phyaddr,MII_MARVELL_PHY_PAGE ,3 ); +miiphy_read (name, phyaddr,16 , ®); + reg |=0xf ; +miiphy_write (name, phyaddr,16 , reg); + +/* +* Enable RGMII delay on Tx and Rx for CPU port +* Ref: sec 4.7.2 of chip datasheet +*/ +miiphy_write (name, phyaddr,MII_MARVELL_PHY_PAGE ,2 ); +miiphy_read (name, phyaddr,MV88E1116_MAC_CTRL_REG , ®); + reg |= (MV88E1116_RGMII_TXTM_CTRL |MV88E1116_RGMII_RXTM_CTRL ); +miiphy_write (name, phyaddr,MV88E1116_MAC_CTRL_REG , reg); +miiphy_write (name, phyaddr,MII_MARVELL_PHY_PAGE ,0 ); + +if (miiphy_reset (name, phyaddr) ==0 ) +printf ("88E1318 Initialized on %s\n" , name); +}#endif /* CONFIG_CMD_NET && CONFIG_RESET_PHY_R */ #if defined(CONFIG_CMD_I2C ) && defined(CONFIG_SYS_I2C_EEPROM_ADDR )
board/LaCie/common/common.h +1 -0
@@ -12,6 +12,7 @@#if defined(CONFIG_CMD_NET ) && defined(CONFIG_RESET_PHY_R )void mv_phy_88e1116_init (const char *name,u16 phyaddr); +void mv_phy_88e1318_init (const char *name,u16 phyaddr);#endif #if defined(CONFIG_CMD_I2C ) && defined(CONFIG_SYS_I2C_EEPROM_ADDR )int lacie_read_mac_address (uchar *mac);
board/LaCie/netspace_v2/kwbimage-ns2l.cfg new file +162 -0
162 lines not on this page · raw message
board/LaCie/netspace_v2/netspace_v2.c +4 -0
@@ -107,7 +107,11 @@ int misc_init_r(void)/* Configure and initialize PHY */ void reset_phy (void ) { +#if defined(CONFIG_NETSPACE_LITE_V2 ) || defined(CONFIG_NETSPACE_MINI_V2 ) +mv_phy_88e1318_init ("egiga0" ,0 ); +#else mv_phy_88e1116_init ("egiga0" ,8 ); +#endif }#endif
boards.cfg +2 -0
@@ -144,7 +144,9 @@ mgcoge3un arm arm926ejs km_arm keymile portl2 arm arm926ejs km_arm keymile kirkwood inetspace_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:INETSPACE_V2 net2big_v2 arm arm926ejs net2big_v2 LaCie kirkwood lacie_kw:NET2BIG_V2 +netspace_lite_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:NETSPACE_LITE_V2 netspace_max_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:NETSPACE_MAX_V2 +netspace_mini_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:NETSPACE_MINI_V2 netspace_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:NETSPACE_V2 dreamplug arm arm926ejs - Marvell kirkwood guruplug arm arm926ejs - Marvell kirkwood
include/configs/lacie_kw.h +22 -4
@@ -27,6 +27,12 @@#elif defined(CONFIG_NETSPACE_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_V2#define CONFIG_IDENT_STRING " NS v2" +#elif defined(CONFIG_NETSPACE_LITE_V2 ) +#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_LITE_V2 +#define CONFIG_IDENT_STRING " NS v2 Lite" +#elif defined(CONFIG_NETSPACE_MINI_V2 ) +#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MINI_V2 +#define CONFIG_IDENT_STRING " NS v2 Mini"#elif defined(CONFIG_NETSPACE_MAX_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2#define CONFIG_IDENT_STRING " NS Max v2"
@@ -41,8 +47,13 @@* High Level Configuration Options (easy to change) */ #define CONFIG_FEROCEON_88FR131 /* CPU Core subversion */ -#define CONFIG_KIRKWOOD /* SOC Family Name */ -#define CONFIG_KW88F6281 /* SOC Name */ +#define CONFIG_KIRKWOOD /* SoC Family Name */ +/* SoC name */ +#if defined(CONFIG_NETSPACE_LITE_V2 ) || defined(CONFIG_NETSPACE_MINI_V2 ) +#define CONFIG_KW88F6192 +#else +#define CONFIG_KW88F6281 +#endif #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ /*
@@ -56,7 +67,9 @@#define CONFIG_CMD_SF #define CONFIG_CMD_I2C #define CONFIG_CMD_IDE +#ifndef CONFIG_NETSPACE_MINI_V2 /* No USB ports on Network Space v2 Mini */ #define CONFIG_CMD_USB +#endif /* * Core clock definition
@@ -68,9 +81,14 @@*/ #define CONFIG_NR_DRAM_BANKS 1 -#ifdef CONFIG_INETSPACE_V2 -/* Different SDRAM configuration and size for Internet Space v2 */ +/* +* Different SDRAM configuration and size for some of the boards derived +* from the Network Space v2 +*/ +#if defined(CONFIG_INETSPACE_V2 )#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-is2.cfg +#elif defined(CONFIG_NETSPACE_LITE_V2 ) || defined(CONFIG_NETSPACE_MINI_V2 ) +#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg#endif /*
Signature · 1 line
1.7.9.5
PATCH v2 4/4 ARM: add support for d2 Network v2
In reply to Simon GuinotThis patch adds support for the LaCie board d2 Network v2 which share a lot of hardware caracteristics with the 2Big Network v2.
- CPU: Marvell 88F6281 1200Mhz
- SDRAM memory: 256MB DDR2 400Mhz
- 2 SATA ports: internal and eSATA
- Gigabit ethernet: PHY Marvell 88E1116R
- Flash memory: SPI NOR 512KB (Macronix MX25L4005A)
- i2c EEPROM: 512 bytes (24C04 type)
- 2 USB2 ports: host and host/device
- 1 push button
- 1 power switch
- 1 SATA LED (bi-color, blue and red)
---
No changes for v2.
boards.cfg | 1 + include/configs/lacie_kw.h | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-)
boards.cfg +1 -0
@@ -142,6 +142,7 @@ km_kirkwood arm arm926ejs km_arm keymile km_kirkwood_pci arm arm926ejs km_arm keymile kirkwood km_kirkwood:KM_KIRKWOOD_PCI,KM_RECONFIG_XLX mgcoge3un arm arm926ejs km_arm keymile kirkwood portl2 arm arm926ejs km_arm keymile kirkwood +d2net_v2 arm arm926ejs net2big_v2 LaCie kirkwood lacie_kw:D2NET_V2 inetspace_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:INETSPACE_V2 net2big_v2 arm arm926ejs net2big_v2 LaCie kirkwood lacie_kw:NET2BIG_V2 netspace_lite_v2 arm arm926ejs netspace_v2 LaCie kirkwood lacie_kw:NETSPACE_LITE_V2
include/configs/lacie_kw.h +8 -2
@@ -36,6 +36,9 @@#elif defined(CONFIG_NETSPACE_MAX_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NETSPACE_MAX_V2#define CONFIG_IDENT_STRING " NS Max v2" +#elif defined(CONFIG_D2NET_V2 ) +#define CONFIG_MACH_TYPE MACH_TYPE_D2NET_V2 +#define CONFIG_IDENT_STRING " D2 v2"#elif defined(CONFIG_NET2BIG_V2 )#define CONFIG_MACH_TYPE MACH_TYPE_NET2BIG_V2#define CONFIG_IDENT_STRING " 2Big v2"
@@ -106,7 +109,9 @@#define CONFIG_ENV_SPI_MAX_HZ 20000000/* 20Mhz */ #define CONFIG_SYS_IDE_MAXBUS 1#define CONFIG_SYS_IDE_MAXDEVICE 1 -#if defined(CONFIG_NET2BIG_V2 ) +#if defined(CONFIG_D2NET_V2 ) +#define CONFIG_SYS_PROMPT "d2v2> " +#elif defined(CONFIG_NET2BIG_V2 )#define CONFIG_SYS_PROMPT "2big2> "#else #define CONFIG_SYS_PROMPT "ns2> "
@@ -126,7 +131,8 @@*/ #ifdef CONFIG_MVSATA_IDE #define CONFIG_SYS_ATA_IDE0_OFFSET MV_SATA_PORT0_OFFSET -#if defined(CONFIG_NETSPACE_MAX_V2 ) || defined(CONFIG_NET2BIG_V2 ) +#if defined(CONFIG_NETSPACE_MAX_V2 ) || defined(CONFIG_D2NET_V2 ) || \ + defined(CONFIG_NET2BIG_V2 )#define CONFIG_SYS_ATA_IDE1_OFFSET MV_SATA_PORT1_OFFSET#endif #endif /* CONFIG_MVSATA_IDE */
Signature · 1 line
1.7.9.5
v2 cover Board support and feature for LaCie devices
In reply to Simon GuinotQuoted 10 lines · Simon Guinot
Changes for v2:
- Move board support and feature into a separate patch set.
- Move mach-types update into a separate patch.Simon Guinot (4):
lacie_kw: add support for EFI partitions
ARM: addnetspace_mini_v2tomach-types.h
ARM: add support for Network Space v2 Lite and Mini
ARM: add support for d2 Network v2
Quoted 9 lines
arch/arm/include/asm/mach-types.h | 13 +++ board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 3 + include/configs/lacie_kw.h | 42 ++++++-- 7 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
Please could you pick this patches too ?
Thanks,
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/20120614/97a7ace2/attachment.pgp>
v2 cover Board support and feature for LaCie devices
In reply to Simon GuinotQuoted 10 lines · Simon Guinot
Changes for v2:
- Move board support and feature into a separate patch set.
- Move mach-types update into a separate patch.Simon Guinot (4):
lacie_kw: add support for EFI partitions
ARM: addnetspace_mini_v2tomach-types.h
ARM: add support for Network Space v2 Lite and Mini
ARM: add support for d2 Network v2
Quoted 9 lines
arch/arm/include/asm/mach-types.h | 13 +++ board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 3 + include/configs/lacie_kw.h | 42 ++++++-- 7 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
Hi Prafulla,
Could you please pick up this patches.
Simon
Quoted 8 lines
Signature · 7 lines
-- 1.7.9.5 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
-------------- 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/20120709/88d249c0/attachment.pgp>
v2 cover Board support and feature for LaCie devices
In reply to Simon GuinotQuoted 10 lines · Simon Guinot
Changes for v2:
- Move board support and feature into a separate patch set.
- Move mach-types update into a separate patch.Simon Guinot (4):
lacie_kw: add support for EFI partitions
ARM: addnetspace_mini_v2tomach-types.h
ARM: add support for Network Space v2 Lite and Mini
ARM: add support for d2 Network v2
Quoted 9 lines
arch/arm/include/asm/mach-types.h | 13 +++ board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 3 + include/configs/lacie_kw.h | 42 ++++++-- 7 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
Hi Prafulla,
What is the next step for this patches ?
Do you want me for some changes ?
Regards,
Simon
Quoted 8 lines
Signature · 7 lines
-- 1.7.9.5 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
-------------- 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/20120716/e5ebfe73/attachment.pgp>
v2 cover Board support and feature for LaCie devices
In reply to Simon GuinotQuoted 10 lines · Simon Guinot
Changes for v2:
- Move board support and feature into a separate patch set.
- Move mach-types update into a separate patch.Simon Guinot (4):
lacie_kw: add support for EFI partitions
ARM: addnetspace_mini_v2tomach-types.h
ARM: add support for Network Space v2 Lite and Mini
ARM: add support for d2 Network v2
Quoted 9 lines
arch/arm/include/asm/mach-types.h | 13 +++ board/LaCie/common/common.c | 36 ++++++- board/LaCie/common/common.h | 1 + board/LaCie/netspace_v2/kwbimage-ns2l.cfg | 162 +++++++++++++++++++++++++++++ board/LaCie/netspace_v2/netspace_v2.c | 4 + boards.cfg | 3 + include/configs/lacie_kw.h | 42 ++++++-- 7 files changed, 252 insertions(+), 9 deletions(-) create mode 100644 board/LaCie/netspace_v2/kwbimage-ns2l.cfg
Hi Prafulla,
Please, consider picking this patches.
Regards,
Simon
Quoted 8 lines
Signature · 7 lines
-- 1.7.9.5 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
-------------- 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/20120719/c87720c5/attachment.pgp>