diff options
Diffstat (limited to 'arch/arm/mach-orion5x/db88f5281-setup.c')
-rw-r--r-- | arch/arm/mach-orion5x/db88f5281-setup.c | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/arch/arm/mach-orion5x/db88f5281-setup.c b/arch/arm/mach-orion5x/db88f5281-setup.c index 4ee695028254..eca76b3348bc 100644 --- a/arch/arm/mach-orion5x/db88f5281-setup.c +++ b/arch/arm/mach-orion5x/db88f5281-setup.c | |||
@@ -298,13 +298,6 @@ static struct i2c_board_info __initdata db88f5281_i2c_rtc = { | |||
298 | /***************************************************************************** | 298 | /***************************************************************************** |
299 | * General Setup | 299 | * General Setup |
300 | ****************************************************************************/ | 300 | ****************************************************************************/ |
301 | |||
302 | static struct platform_device *db88f5281_devs[] __initdata = { | ||
303 | &db88f5281_boot_flash, | ||
304 | &db88f5281_nor_flash, | ||
305 | &db88f5281_nand_flash, | ||
306 | }; | ||
307 | |||
308 | static void __init db88f5281_init(void) | 301 | static void __init db88f5281_init(void) |
309 | { | 302 | { |
310 | /* | 303 | /* |
@@ -313,15 +306,6 @@ static void __init db88f5281_init(void) | |||
313 | orion5x_init(); | 306 | orion5x_init(); |
314 | 307 | ||
315 | /* | 308 | /* |
316 | * Setup the CPU address decode windows for our on-board devices | ||
317 | */ | ||
318 | orion5x_setup_dev_boot_win(DB88F5281_NOR_BOOT_BASE, | ||
319 | DB88F5281_NOR_BOOT_SIZE); | ||
320 | orion5x_setup_dev0_win(DB88F5281_7SEG_BASE, DB88F5281_7SEG_SIZE); | ||
321 | orion5x_setup_dev1_win(DB88F5281_NOR_BASE, DB88F5281_NOR_SIZE); | ||
322 | orion5x_setup_dev2_win(DB88F5281_NAND_BASE, DB88F5281_NAND_SIZE); | ||
323 | |||
324 | /* | ||
325 | * Setup Multiplexing Pins: | 309 | * Setup Multiplexing Pins: |
326 | * MPP0: GPIO (USB Over Current) MPP1: GPIO (USB Vbat input) | 310 | * MPP0: GPIO (USB Over Current) MPP1: GPIO (USB Vbat input) |
327 | * MPP2: PCI_REQn[2] MPP3: PCI_GNTn[2] | 311 | * MPP2: PCI_REQn[2] MPP3: PCI_GNTn[2] |
@@ -342,9 +326,28 @@ static void __init db88f5281_init(void) | |||
342 | 326 | ||
343 | orion5x_gpio_set_valid_pins(0x00003fc3); | 327 | orion5x_gpio_set_valid_pins(0x00003fc3); |
344 | 328 | ||
345 | platform_add_devices(db88f5281_devs, ARRAY_SIZE(db88f5281_devs)); | 329 | /* |
346 | i2c_register_board_info(0, &db88f5281_i2c_rtc, 1); | 330 | * Configure peripherals. |
331 | */ | ||
332 | orion5x_ehci0_init(); | ||
347 | orion5x_eth_init(&db88f5281_eth_data); | 333 | orion5x_eth_init(&db88f5281_eth_data); |
334 | orion5x_i2c_init(); | ||
335 | orion5x_uart0_init(); | ||
336 | orion5x_uart1_init(); | ||
337 | |||
338 | orion5x_setup_dev_boot_win(DB88F5281_NOR_BOOT_BASE, | ||
339 | DB88F5281_NOR_BOOT_SIZE); | ||
340 | platform_device_register(&db88f5281_boot_flash); | ||
341 | |||
342 | orion5x_setup_dev0_win(DB88F5281_7SEG_BASE, DB88F5281_7SEG_SIZE); | ||
343 | |||
344 | orion5x_setup_dev1_win(DB88F5281_NOR_BASE, DB88F5281_NOR_SIZE); | ||
345 | platform_device_register(&db88f5281_nor_flash); | ||
346 | |||
347 | orion5x_setup_dev2_win(DB88F5281_NAND_BASE, DB88F5281_NAND_SIZE); | ||
348 | platform_device_register(&db88f5281_nand_flash); | ||
349 | |||
350 | i2c_register_board_info(0, &db88f5281_i2c_rtc, 1); | ||
348 | } | 351 | } |
349 | 352 | ||
350 | MACHINE_START(DB88F5281, "Marvell Orion-2 Development Board") | 353 | MACHINE_START(DB88F5281, "Marvell Orion-2 Development Board") |