bios: Fix build when ethphy is present but ethmac is not.

While testing my Ethernet DMA, I renamed the `ethmac` module to `ethmac_dma` so that it wouldn't be used from the BIOS, but I got an undefined reference to `eth_init` because `bios.c` checks different CSR defines than the code that defines `eth_init`.
This commit is contained in:
Ambroz Bizjak 2019-06-13 01:02:22 +02:00 committed by GitHub
parent ab1f580470
commit ca70ea91e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ int main(int i, char **c)
printf("\n"); printf("\n");
printf("--========= \e[1mPeripherals init\e[0m ===========--\n"); printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
#ifdef CSR_ETHPHY_CRG_RESET_ADDR #ifdef CSR_ETHMAC_BASE
eth_init(); eth_init();
#endif #endif
#ifdef CSR_SDRAM_BASE #ifdef CSR_SDRAM_BASE