aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-orion5x/ts409-setup.c
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2008-08-09 18:13:33 +0300
committerNicolas Pitre <nico@cam.org>2008-08-21 22:15:17 -0400
commit35228e840acc70b49a2eab4eb308ca3d544efdcf (patch)
treec8683cc4a054f3ae2a8aefc77dc293e2e1fbdd04 /arch/arm/mach-orion5x/ts409-setup.c
parent7a6bb2622692495d1b7445a3e8c257601b803b02 (diff)
[ARM] Orion: fix MAC detection on QNAP TS-209 and TS-409
Flash needs to be set up before we can try to read the MAC address from there. Signed-off-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'arch/arm/mach-orion5x/ts409-setup.c')
-rw-r--r--arch/arm/mach-orion5x/ts409-setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-orion5x/ts409-setup.c b/arch/arm/mach-orion5x/ts409-setup.c
index b27d2b762081..4bd8ed1d75e4 100644
--- a/arch/arm/mach-orion5x/ts409-setup.c
+++ b/arch/arm/mach-orion5x/ts409-setup.c
@@ -278,6 +278,10 @@ static void __init qnap_ts409_init(void)
/*
* Configure peripherals.
*/
+ orion5x_setup_dev_boot_win(QNAP_TS409_NOR_BOOT_BASE,
+ QNAP_TS409_NOR_BOOT_SIZE);
+ platform_device_register(&qnap_ts409_nor_flash);
+
orion5x_ehci0_init();
qnap_tsx09_find_mac_addr(QNAP_TS409_NOR_BOOT_BASE +
qnap_ts409_partitions[5].offset,
@@ -286,10 +290,6 @@ static void __init qnap_ts409_init(void)
orion5x_i2c_init();
orion5x_uart0_init();
- orion5x_setup_dev_boot_win(QNAP_TS409_NOR_BOOT_BASE,
- QNAP_TS409_NOR_BOOT_SIZE);
- platform_device_register(&qnap_ts409_nor_flash);
-
platform_device_register(&qnap_ts409_button_device);
/* Get RTC IRQ and register the chip */