diff options
-rw-r--r-- | arch/arm/mach-orion5x/Kconfig | 8 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/Makefile | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/kurobox_pro-setup.c | 25 |
3 files changed, 28 insertions, 6 deletions
diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig index 01c66957d8f4..93debf336155 100644 --- a/arch/arm/mach-orion5x/Kconfig +++ b/arch/arm/mach-orion5x/Kconfig | |||
@@ -36,6 +36,14 @@ config MACH_TS209 | |||
36 | Say 'Y' here if you want your kernel to support the | 36 | Say 'Y' here if you want your kernel to support the |
37 | QNAP TS-109/TS-209 platform. | 37 | QNAP TS-109/TS-209 platform. |
38 | 38 | ||
39 | config MACH_LINKSTATION_PRO | ||
40 | bool "Buffalo Linkstation Pro/Live" | ||
41 | select I2C_BOARDINFO | ||
42 | help | ||
43 | Say 'Y' here if you want your kernel to support the | ||
44 | Buffalo Linkstation Pro/Live platform. Both v1 and | ||
45 | v2 devices are supported. | ||
46 | |||
39 | endmenu | 47 | endmenu |
40 | 48 | ||
41 | endif | 49 | endif |
diff --git a/arch/arm/mach-orion5x/Makefile b/arch/arm/mach-orion5x/Makefile index d894caa5060f..9301bf55910b 100644 --- a/arch/arm/mach-orion5x/Makefile +++ b/arch/arm/mach-orion5x/Makefile | |||
@@ -2,5 +2,6 @@ obj-y += common.o addr-map.o pci.o gpio.o irq.o | |||
2 | obj-$(CONFIG_MACH_DB88F5281) += db88f5281-setup.o | 2 | obj-$(CONFIG_MACH_DB88F5281) += db88f5281-setup.o |
3 | obj-$(CONFIG_MACH_RD88F5182) += rd88f5182-setup.o | 3 | obj-$(CONFIG_MACH_RD88F5182) += rd88f5182-setup.o |
4 | obj-$(CONFIG_MACH_KUROBOX_PRO) += kurobox_pro-setup.o | 4 | obj-$(CONFIG_MACH_KUROBOX_PRO) += kurobox_pro-setup.o |
5 | obj-$(CONFIG_MACH_LINKSTATION_PRO) += kurobox_pro-setup.o | ||
5 | obj-$(CONFIG_MACH_DNS323) += dns323-setup.o | 6 | obj-$(CONFIG_MACH_DNS323) += dns323-setup.o |
6 | obj-$(CONFIG_MACH_TS209) += ts209-setup.o | 7 | obj-$(CONFIG_MACH_TS209) += ts209-setup.o |
diff --git a/arch/arm/mach-orion5x/kurobox_pro-setup.c b/arch/arm/mach-orion5x/kurobox_pro-setup.c index 8ad4390b4b7b..91413455beba 100644 --- a/arch/arm/mach-orion5x/kurobox_pro-setup.c +++ b/arch/arm/mach-orion5x/kurobox_pro-setup.c | |||
@@ -178,11 +178,6 @@ static struct mv_sata_platform_data kurobox_pro_sata_data = { | |||
178 | * General Setup | 178 | * General Setup |
179 | ****************************************************************************/ | 179 | ****************************************************************************/ |
180 | 180 | ||
181 | static struct platform_device *kurobox_pro_devices[] __initdata = { | ||
182 | &kurobox_pro_nor_flash, | ||
183 | &kurobox_pro_nand_flash, | ||
184 | }; | ||
185 | |||
186 | static void __init kurobox_pro_init(void) | 181 | static void __init kurobox_pro_init(void) |
187 | { | 182 | { |
188 | /* | 183 | /* |
@@ -224,12 +219,15 @@ static void __init kurobox_pro_init(void) | |||
224 | 219 | ||
225 | orion5x_gpio_set_valid_pins(0x0000000c); | 220 | orion5x_gpio_set_valid_pins(0x0000000c); |
226 | 221 | ||
227 | platform_add_devices(kurobox_pro_devices, ARRAY_SIZE(kurobox_pro_devices)); | 222 | platform_device_register(&kurobox_pro_nor_flash); |
223 | if (machine_is_kurobox_pro()) | ||
224 | platform_device_register(&kurobox_pro_nand_flash); | ||
228 | i2c_register_board_info(0, &kurobox_pro_i2c_rtc, 1); | 225 | i2c_register_board_info(0, &kurobox_pro_i2c_rtc, 1); |
229 | orion5x_eth_init(&kurobox_pro_eth_data); | 226 | orion5x_eth_init(&kurobox_pro_eth_data); |
230 | orion5x_sata_init(&kurobox_pro_sata_data); | 227 | orion5x_sata_init(&kurobox_pro_sata_data); |
231 | } | 228 | } |
232 | 229 | ||
230 | #ifdef CONFIG_MACH_KUROBOX_PRO | ||
233 | MACHINE_START(KUROBOX_PRO, "Buffalo/Revogear Kurobox Pro") | 231 | MACHINE_START(KUROBOX_PRO, "Buffalo/Revogear Kurobox Pro") |
234 | /* Maintainer: Ronen Shitrit <rshitrit@marvell.com> */ | 232 | /* Maintainer: Ronen Shitrit <rshitrit@marvell.com> */ |
235 | .phys_io = ORION5X_REGS_PHYS_BASE, | 233 | .phys_io = ORION5X_REGS_PHYS_BASE, |
@@ -241,3 +239,18 @@ MACHINE_START(KUROBOX_PRO, "Buffalo/Revogear Kurobox Pro") | |||
241 | .timer = &orion5x_timer, | 239 | .timer = &orion5x_timer, |
242 | .fixup = tag_fixup_mem32, | 240 | .fixup = tag_fixup_mem32, |
243 | MACHINE_END | 241 | MACHINE_END |
242 | #endif | ||
243 | |||
244 | #ifdef CONFIG_MACH_LINKSTATION_PRO | ||
245 | MACHINE_START(LINKSTATION_PRO, "Buffalo Linkstation Pro/Live") | ||
246 | /* Maintainer: Byron Bradley <byron.bbradley@gmail.com> */ | ||
247 | .phys_io = ORION5X_REGS_PHYS_BASE, | ||
248 | .io_pg_offst = ((ORION5X_REGS_VIRT_BASE) >> 18) & 0xFFFC, | ||
249 | .boot_params = 0x00000100, | ||
250 | .init_machine = kurobox_pro_init, | ||
251 | .map_io = orion5x_map_io, | ||
252 | .init_irq = orion5x_init_irq, | ||
253 | .timer = &orion5x_timer, | ||
254 | .fixup = tag_fixup_mem32, | ||
255 | MACHINE_END | ||
256 | #endif | ||