X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fcm-bf561%2Fcm-bf561.c;h=5741f6410793744a6ce3f120d7299b2f950d4500;hb=ecfc19f31f1fa25f739d11c81d4810f9b35b29aa;hp=5bce9eb59d078d4d8a28d4e7f6f761cbbb7e9fb8;hpb=bec9cab9291bb221714d559a44fe37669a8ca604;p=u-boot diff --git a/board/cm-bf561/cm-bf561.c b/board/cm-bf561/cm-bf561.c index 5bce9eb59d..5741f64107 100644 --- a/board/cm-bf561/cm-bf561.c +++ b/board/cm-bf561/cm-bf561.c @@ -7,6 +7,7 @@ */ #include +#include DECLARE_GLOBAL_DATA_PTR; @@ -17,9 +18,9 @@ int checkboard(void) return 0; } -phys_size_t initdram(int board_type) +#ifdef CONFIG_SMC911X +int board_eth_init(bd_t *bis) { - gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE; - gd->bd->bi_memsize = CONFIG_SYS_MAX_RAM_SIZE; - return gd->bd->bi_memsize; + return smc911x_initialize(0, CONFIG_SMC911X_BASE); } +#endif