ARM: kirkwood: add LaCie Network Space Lite v2 support
Subsystems (2)
PATCH 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)
--- arch/arm/mach-kirkwood/Kconfig | 6 ++++++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/netspace_v2-setup.c | 13 +++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-)
arch/arm/mach-kirkwood/Kconfig +6 -0
@@ -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
@@ -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 +13 -0
@@ -237,6 +237,8 @@ static void __init netspace_v2_init(void)lacie_v2_hdd_power_init (1 );kirkwood_ehci_init (); +if (machine_is_netspace_lite_v2 ()) + netspace_v2_ge00_data.phy_addr =MV643XX_ETH_PHY_ADDR (0 );kirkwood_ge00_init (&netspace_v2_ge00_data);kirkwood_sata_init (&netspace_v2_sata_data);kirkwood_uart0_init ();
@@ -267,6 +269,17 @@ 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" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer, +MACHINE_END +#endif +#ifdef CONFIG_MACH_INETSPACE_V2 MACHINE_START (INETSPACE_V2 ,"LaCie Internet Space v2" ) .atag_offset = 0x100,
Signature · 1 line
1.7.7
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 279
Quoted 8 lines · Christophe Vu-Brugier
arch/arm/mach-kirkwood/netspace_v2-setup.c +8
-0+#ifdef CONFIG_MACH_NETSPACE_LITE_V2 +MACHINE_START (NETSPACE_LITE_V2 ,"LaCie Network Space Lite v2" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer,
When the restart series is queued, you'll have to add a:
.restart = kirkwood_restart,
here.
Please also order these initializers in the same order as they're declared in struct machine_desc - the order there reflects the order in which they're called. They're done like that to aid peoples understanding of the ordering there.
So you want .init_machine after .timer.
Quoted 2 lines
arch/arm/mach-kirkwood/netspace_v2-setup.c +2
-0+MACHINE_END +#endif
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
Hi Russel,
Quoted 13 lines · Russell King - ARM Linux
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 279
Quoted 8 lines · Christophe Vu-Brugier
arch/arm/mach-kirkwood/netspace_v2-setup.c +8
-0+#ifdef CONFIG_MACH_NETSPACE_LITE_V2 +MACHINE_START (NETSPACE_LITE_V2 ,"LaCie Network Space Lite v2" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer,When the restart series is queued, you'll have to add a:
.restart =kirkwood_restart,
Quoted 8 lines
here.
Please also order these initializers in the same order as they're declared in struct
machine_desc- the order there reflects the order in which they're called. They're done like that to aid peoples understanding of the ordering there.So you want .init_machine after .timer.
The Christophe's patch is consistent with the other Kirkwood machines declarations. Maybe that all this declarations should be fixed with a separate patch ?
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/20111107/f1ffca42/attachment.sig>
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
Quoted 23 lines · Simon Guinot
Hi Russel,
Quoted 20 lines · Russell King - ARM Linux
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 279
Quoted 8 lines · Christophe Vu-Brugier
arch/arm/mach-kirkwood/netspace_v2-setup.c +8
-0+#ifdef CONFIG_MACH_NETSPACE_LITE_V2 +MACHINE_START (NETSPACE_LITE_V2 ,"LaCie Network Space Lite v2" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer,When the restart series is queued, you'll have to add a:
.restart =kirkwood_restart,here.
Please also order these initializers in the same order as they're declared in struct
machine_desc- the order there reflects the order in which they're called. They're done like that to aid peoples understanding of the ordering there.
Quoted 5 lines
Quoted 1 line
So you want .init_machine after .timer.
The Christophe's patch is consistent with the other Kirkwood machines declarations. Maybe that all this declarations should be fixed with a separate patch ?
Why create more work (and churn) by having to fix new introductions up? Why not make sure new introductions are correct first time around.
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
Quoted 24 lines · Russell King - ARM Linux
Quoted 23 lines · Simon Guinot
Hi Russel,
Quoted 20 lines · Russell King - ARM Linux
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 279
Quoted 8 lines · Christophe Vu-Brugier
arch/arm/mach-kirkwood/netspace_v2-setup.c +8
-0+#ifdef CONFIG_MACH_NETSPACE_LITE_V2 +MACHINE_START (NETSPACE_LITE_V2 ,"LaCie Network Space Lite v2" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer,When the restart series is queued, you'll have to add a:
.restart =kirkwood_restart,here.
Please also order these initializers in the same order as they're declared in struct
machine_desc- the order there reflects the order in which they're called. They're done like that to aid peoples understanding of the ordering there.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
So you want .init_machine after .timer.
The Christophe's patch is consistent with the other Kirkwood machines declarations. Maybe that all this declarations should be fixed with a separate patch ?
Why create more work (and churn) by having to fix new introductions up? Why not make sure new introductions are correct first time around.
Yes, sure. On the other hand, having different field ordering for themachine_desc declarations within a same file could confuse the reader
as well.
-------------- 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/20111107/8620abf9/attachment.sig>
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
Quoted 31 lines · Simon Guinot
Quoted 30 lines · Russell King - ARM Linux
Quoted 28 lines · Simon Guinot
Hi Russel,
Quoted 13 lines · Russell King - ARM Linux
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 279
Quoted 8 lines · Christophe Vu-Brugier
arch/arm/mach-kirkwood/netspace_v2-setup.c +8
-0+#ifdef CONFIG_MACH_NETSPACE_LITE_V2 +MACHINE_START (NETSPACE_LITE_V2 ,"LaCie Network Space Lite v2" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer,When the restart series is queued, you'll have to add a:
.restart =kirkwood_restart,Quoted 8 lines
here.
Please also order these initializers in the same order as they're declared in struct
machine_desc- the order there reflects the order in which they're called. They're done like that to aid peoples understanding of the ordering there.So you want .init_machine after .timer.
The Christophe's patch is consistent with the other Kirkwood machines declarations. Maybe that all this declarations should be fixed with a separate patch ?
Quoted 6 lines
Quoted 2 lines
Why create more work (and churn) by having to fix new introductions up? Why not make sure new introductions are correct first time around.
Yes, sure. On the other hand, having different field ordering for the
machine_descdeclarations within a same file could confuse the reader as well.
What about a patch fixing the ordering first?
Nicolas
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
In reply to Christophe Vu-BrugierHi Christophe,
Quoted 63 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)Signed-off-by Christophe Vu-Brugier <[email protected]>--- arch/arm/mach-kirkwood/Kconfig | 6 ++++++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/netspace_v2-setup.c | 13 +++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-)arch/arm/mach-kirkwood/Kconfig +6
-0@@ -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" helparch/arm/mach-kirkwood/Makefile +1
-0@@ -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.oarch/arm/mach-kirkwood/netspace_v2-setup.c +2
-0@@ -237,6 +237,8 @@ static void __init netspace_v2_init(void)lacie_v2_hdd_power_init (1 );kirkwood_ehci_init (); +if (machine_is_netspace_lite_v2 ()) + netspace_v2_ge00_data.phy_addr =MV643XX_ETH_PHY_ADDR (0 );kirkwood_ge00_init (&netspace_v2_ge00_data);kirkwood_sata_init (&netspace_v2_sata_data);kirkwood_uart0_init ();
arch/arm/mach-kirkwood/netspace_v2-setup.c MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") · line 270
Quoted 2 lines
arch/arm/mach-kirkwood/netspace_v2-setup.c +0
-0@@ -267,6 +269,17 @@ MACHINE_START(NETSPACE_V2, "LaCie Network Space v2") MACHINE_END#endif
The configuration mechanism for the blue front LED is different between netspace_lite_v2 and netspace_v2. A comment to describe this mechanism would be welcome. Moreover, handling this LED with the driver "leds-ns2" is not very clean. I think you should use the driver "leds-gpio"
Regards,
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/20111107/03f1c55a/attachment-0001.sig>
PATCH 1/1 ARM: kirkwood: add LaCie Network Space Lite v2 support
In reply to Christophe Vu-BrugierHi Christophe,
Quoted 12 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)
As you are here, could you as well add support for the Network Space Mini board ? The only difference between the Lite and the Mini boards is that a GPIO fan is provided on the last.
Thanks in advance.
Simon
Quoted 76 lines
Signed-off-by Christophe Vu-Brugier <[email protected]>--- arch/arm/mach-kirkwood/Kconfig | 6 ++++++ arch/arm/mach-kirkwood/Makefile | 1 + arch/arm/mach-kirkwood/netspace_v2-setup.c | 13 +++++++++++++ 3 files changed, 20 insertions(+), 0 deletions(-)arch/arm/mach-kirkwood/Kconfig +6
-0@@ -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" helparch/arm/mach-kirkwood/Makefile +1
-0@@ -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.oarch/arm/mach-kirkwood/netspace_v2-setup.c +13
-0@@ -237,6 +237,8 @@ static void __init netspace_v2_init(void)lacie_v2_hdd_power_init (1 );kirkwood_ehci_init (); +if (machine_is_netspace_lite_v2 ()) + netspace_v2_ge00_data.phy_addr =MV643XX_ETH_PHY_ADDR (0 );kirkwood_ge00_init (&netspace_v2_ge00_data);kirkwood_sata_init (&netspace_v2_sata_data);kirkwood_uart0_init ();@@ -267,6 +269,17 @@ 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" ) + .atag_offset = 0x100, + .init_machine = netspace_v2_init, + .map_io = kirkwood_map_io, + .init_early = kirkwood_init_early, + .init_irq = kirkwood_init_irq, + .timer = &kirkwood_timer, +MACHINE_END +#endif +#ifdef CONFIG_MACH_INETSPACE_V2 MACHINE_START (INETSPACE_V2 ,"LaCie Internet Space v2" ) .atag_offset = 0x100,Signature · 7 lines
1.7.7 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
-------------- 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/20111108/bd407d8a/attachment.sig>