mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
software/bios: don't show peripherals init banner if nothing to init, add Ethernet init printf
This commit is contained in:
parent
37531cec81
commit
840f01b6d5
2 changed files with 4 additions and 2 deletions
|
@ -595,6 +595,8 @@ int main(int i, char **c)
|
||||||
#endif
|
#endif
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
|
sdr_ok = 1;
|
||||||
|
#if defined(CSR_ETHMAC_BASE) || defined(CSR_SDRAM_BASE)
|
||||||
printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
|
printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
|
||||||
#ifdef CSR_ETHMAC_BASE
|
#ifdef CSR_ETHMAC_BASE
|
||||||
eth_init();
|
eth_init();
|
||||||
|
@ -604,13 +606,12 @@ int main(int i, char **c)
|
||||||
#else
|
#else
|
||||||
#ifdef MAIN_RAM_TEST
|
#ifdef MAIN_RAM_TEST
|
||||||
sdr_ok = memtest();
|
sdr_ok = memtest();
|
||||||
#else
|
|
||||||
sdr_ok = 1;
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
if (sdr_ok !=1)
|
if (sdr_ok !=1)
|
||||||
printf("Memory initialization failed\n");
|
printf("Memory initialization failed\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
if(sdr_ok) {
|
if(sdr_ok) {
|
||||||
printf("--========== \e[1mBoot sequence\e[0m =============--\n");
|
printf("--========== \e[1mBoot sequence\e[0m =============--\n");
|
||||||
|
|
|
@ -460,6 +460,7 @@ static void busy_wait(unsigned int ds)
|
||||||
|
|
||||||
void eth_init(void)
|
void eth_init(void)
|
||||||
{
|
{
|
||||||
|
printf("Ethernet init...");
|
||||||
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
|
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
|
||||||
ethphy_crg_reset_write(1);
|
ethphy_crg_reset_write(1);
|
||||||
busy_wait(2);
|
busy_wait(2);
|
||||||
|
|
Loading…
Reference in a new issue