Skip to contentSkip to conversation

ARM: kirkwood: add LaCie Network Space Lite v2 support

PATCH New Christophe Vu-Brugier 2 participants 2 messages Nov 16, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support

The LaCie Network Space Lite v2 shares most of its characteristics with the LaCie Network Space v2.

Hardware:
* CPU: Marvell 88F6192 800Mhz
* SDRAM memory: 128 MiB DDR2
* Gigabit ethernet: PHY Marvell 88E1318
* Flash memory: Macronix MX25L4005A 512 KiB
* i2c EEPROM: 512 bytes
* 2 USB2 ports: host and host/device
* 1 push button
* 2 LEDs (red and blue)

---
The patch has been rebased on top of the 'reset' branch. It depends on the following commit:

2f82cc8 ARM: restart: kirkwood: use new restart hook

Changes since v1:
* reorder machine_desc initializers
* use the leds-gpio driver to manage the blue LED

 arch/arm/mach-kirkwood/Kconfig             |    6 +++
 arch/arm/mach-kirkwood/Makefile            |    1 +
 arch/arm/mach-kirkwood/netspace_v2-setup.c |   61 +++++++++++++++++++++++++++-
 3 files changed, 66 insertions(+), 2 deletions(-)
arch/arm/mach-kirkwood/Kconfig +6 -0
index 7fc603b..3f64872 100644
@@ -94,6 +94,12 @@ config MACH_NETSPACE_V2
 	  Say 'Y' here if you want your kernel to support the
 	  LaCie Network Space v2 NAS.
 
+config MACH_NETSPACE_LITE_V2
+	bool "LaCie Network Space Lite v2 NAS Board"
+	help
+	  Say 'Y' here if you want your kernel to support the
+	  LaCie Network Space Lite v2 NAS.
+
 config MACH_INETSPACE_V2
 	bool "LaCie Internet Space v2 NAS Board"
 	help
arch/arm/mach-kirkwood/Makefile +1 -0
index 5dcaa81..6e408df 100644
@@ -12,6 +12,7 @@ obj-$(CONFIG_MACH_TS219)		+= ts219-setup.o tsx1x-common.o
 obj-$(CONFIG_MACH_TS41X)		+= ts41x-setup.o tsx1x-common.o
 obj-$(CONFIG_MACH_OPENRD)		+= openrd-setup.o
 obj-$(CONFIG_MACH_NETSPACE_V2)		+= netspace_v2-setup.o lacie_v2-common.o
+obj-$(CONFIG_MACH_NETSPACE_LITE_V2)	+= netspace_v2-setup.o lacie_v2-common.o
 obj-$(CONFIG_MACH_INETSPACE_V2)		+= netspace_v2-setup.o lacie_v2-common.o
 obj-$(CONFIG_MACH_NETSPACE_MAX_V2)	+= netspace_v2-setup.o lacie_v2-common.o
 obj-$(CONFIG_MACH_D2NET_V2)		+= d2net_v2-setup.o lacie_v2-common.o
arch/arm/mach-kirkwood/netspace_v2-setup.c +59 -2

85 lines not on this page · raw message

Signature · 1 line
1.7.7.1
#1 lore raw

PATCH v2 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support

Hi Christophe,

Quoted 28 lines · Christophe Vu-Brugier

The LaCie Network Space Lite v2 shares most of its characteristics with the LaCie Network Space v2.

Hardware:
* CPU: Marvell 88F6192 800Mhz
* SDRAM memory: 128 MiB DDR2
* Gigabit ethernet: PHY Marvell 88E1318
* Flash memory: Macronix MX25L4005A 512 KiB
* i2c EEPROM: 512 bytes
* 2 USB2 ports: host and host/device
* 1 push button
* 2 LEDs (red and blue)

---
The patch has been rebased on top of the 'reset' branch. It depends on the following commit:

2f82cc8 ARM: restart: kirkwood: use new restart hook

Changes since v1:
* reorder machine_desc initializers
* use the leds-gpio driver to manage the blue LED

 arch/arm/mach-kirkwood/Kconfig             |    6 +++
 arch/arm/mach-kirkwood/Makefile            |    1 +
 arch/arm/mach-kirkwood/netspace_v2-setup.c |   61 +++++++++++++++++++++++++++-
 3 files changed, 66 insertions(+), 2 deletions(-)

... snip ...

Quoted 6 lines
arch/arm/mach-kirkwood/netspace_v2-setup.c +2 -0
@@ -268,6 +313,18 @@ MACHINE_START(NETSPACE_V2, "LaCie Network Space v2")
 MACHINE_END
 #endif
 
+#ifdef CONFIG_MACH_NETSPACE_LITE_V2
+MACHINE_START(NETSPACE_LITE_V2, "LaCie Network Space Lite v2")

arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 327

Quoted 10 lines
arch/arm/mach-kirkwood/netspace_v2-setup.c +10 -0
+	.atag_offset	= 0x100,
+	.map_io		= kirkwood_map_io,
+	.init_early	= kirkwood_init_early,
+	.init_irq	= kirkwood_init_irq,
+	.timer		= &kirkwood_timer,
+	.init_machine	= netspace_v2_init,
+	.restart	= kirkwood_restart,
+MACHINE_END
+#endif
+

As suggested by Nicolas, I would have preferred to have a fixed machine_desc parameter ordering for Kirkwood machines before adding support for the Lite. Please, could you provide a such patch ?

Except that, this patch looks good to me.

Thanks,

Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20111116/410e8ff5/attachment.sig>