Unverified Commit ca70ea91 authored by Ambroz Bizjak's avatar Ambroz Bizjak Committed by GitHub

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`.
parent ab1f5804
......@@ -433,7 +433,7 @@ int main(int i, char **c)
printf("\n");
printf("--========= \e[1mPeripherals init\e[0m ===========--\n");
#ifdef CSR_ETHPHY_CRG_RESET_ADDR
#ifdef CSR_ETHMAC_BASE
eth_init();
#endif
#ifdef CSR_SDRAM_BASE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment