From: Florent Kermarrec Date: Thu, 10 Oct 2019 17:18:28 +0000 (+0200) Subject: software/bios: don't show peripherals init banner if nothing to init, add Ethernet... X-Git-Tag: 24jan2021_ls180~931 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=840f01b6d511ad1f00ee19d6bf905a4829209cbc;p=litex.git software/bios: don't show peripherals init banner if nothing to init, add Ethernet init printf --- diff --git a/litex/soc/software/bios/main.c b/litex/soc/software/bios/main.c index 600819b5..5e214386 100644 --- a/litex/soc/software/bios/main.c +++ b/litex/soc/software/bios/main.c @@ -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"); diff --git a/litex/soc/software/libnet/microudp.c b/litex/soc/software/libnet/microudp.c index 1a874894..cb4013df 100644 --- a/litex/soc/software/libnet/microudp.c +++ b/litex/soc/software/libnet/microudp.c @@ -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);