software/bios: call eth_mode only if we have an ethernet mac (we don't need to call...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 4 Jul 2015 19:04:23 +0000 (21:04 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 4 Jul 2015 19:04:23 +0000 (21:04 +0200)
software/bios/main.c

index 104c7f3553e2928d322670b7b89b6b1aa38b0411..938ebe3e95d85d478b756ff894a9ce6c8384ac11 100644 (file)
@@ -508,10 +508,10 @@ static void boot_sequence(void)
                flashboot();
 #endif
                serialboot();
+#ifdef CSR_ETHMAC_BASE
 #ifdef CSR_ETHPHY_MODE_DETECTION_MODE_ADDR
                eth_mode();
 #endif
-#ifdef CSR_ETHMAC_BASE
                netboot();
 #endif
                printf("No boot medium found\n");