[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>

authored by Martin Michlmayr and committed by Nicolas Pitre 35228e84 7a6bb262

+8 -8
+4 -4
arch/arm/mach-orion5x/ts209-setup.c
··· 287 287 /* 288 288 * Configure peripherals. 289 289 */ 290 + orion5x_setup_dev_boot_win(QNAP_TS209_NOR_BOOT_BASE, 291 + QNAP_TS209_NOR_BOOT_SIZE); 292 + platform_device_register(&qnap_ts209_nor_flash); 293 + 290 294 orion5x_ehci0_init(); 291 295 orion5x_ehci1_init(); 292 296 qnap_tsx09_find_mac_addr(QNAP_TS209_NOR_BOOT_BASE + ··· 301 297 orion5x_sata_init(&qnap_ts209_sata_data); 302 298 orion5x_uart0_init(); 303 299 orion5x_xor_init(); 304 - 305 - orion5x_setup_dev_boot_win(QNAP_TS209_NOR_BOOT_BASE, 306 - QNAP_TS209_NOR_BOOT_SIZE); 307 - platform_device_register(&qnap_ts209_nor_flash); 308 300 309 301 platform_device_register(&qnap_ts209_button_device); 310 302
+4 -4
arch/arm/mach-orion5x/ts409-setup.c
··· 278 278 /* 279 279 * Configure peripherals. 280 280 */ 281 + orion5x_setup_dev_boot_win(QNAP_TS409_NOR_BOOT_BASE, 282 + QNAP_TS409_NOR_BOOT_SIZE); 283 + platform_device_register(&qnap_ts409_nor_flash); 284 + 281 285 orion5x_ehci0_init(); 282 286 qnap_tsx09_find_mac_addr(QNAP_TS409_NOR_BOOT_BASE + 283 287 qnap_ts409_partitions[5].offset, ··· 289 285 orion5x_eth_init(&qnap_tsx09_eth_data); 290 286 orion5x_i2c_init(); 291 287 orion5x_uart0_init(); 292 - 293 - orion5x_setup_dev_boot_win(QNAP_TS409_NOR_BOOT_BASE, 294 - QNAP_TS409_NOR_BOOT_SIZE); 295 - platform_device_register(&qnap_ts409_nor_flash); 296 288 297 289 platform_device_register(&qnap_ts409_button_device); 298 290