software/bios: don't show peripherals init banner if nothing to init, add Ethernet...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 10 Oct 2019 17:18:28 +0000 (19:18 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 10 Oct 2019 17:18:28 +0000 (19:18 +0200)
litex/soc/software/bios/main.c
litex/soc/software/libnet/microudp.c

index 600819b55f30d4dd337d3a8b2a3de395c4109c89..5e214386507b9bf23c5c2da41a5464f136b11c86 100644 (file)
@@ -595,6 +595,8 @@ int main(int i, char **c)
 #endif
        printf("\n");
 
+       sdr_ok = 1;
+#if defined(CSR_ETHMAC_BASE) || defined(CSR_SDRAM_BASE)
        printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
 #ifdef CSR_ETHMAC_BASE
        eth_init();
@@ -604,13 +606,12 @@ int main(int i, char **c)
 #else
 #ifdef MAIN_RAM_TEST
        sdr_ok = memtest();
-#else
-       sdr_ok = 1;
 #endif
 #endif
        if (sdr_ok !=1)
                printf("Memory initialization failed\n");
        printf("\n");
+#endif
 
        if(sdr_ok) {
                printf("--========== \e[1mBoot sequence\e[0m =============--\n");
index 1a874894038becdfa5c246179bfd44fe8669f115..cb4013df20b9bd9535d055a507dc3eb878d1b63c 100644 (file)
@@ -460,6 +460,7 @@ static void busy_wait(unsigned int ds)
 
 void eth_init(void)
 {
+       printf("Ethernet init...");
 #ifdef CSR_ETHPHY_CRG_RESET_ADDR
        ethphy_crg_reset_write(1);
        busy_wait(2);