]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cm-bf561/cm-bf561.c
spi_flash: Add spi_flash_probe_fdt() to locate SPI by FDT node
[karo-tx-uboot.git] / board / cm-bf561 / cm-bf561.c
index 5bce9eb59d078d4d8a28d4e7f6f761cbbb7e9fb8..5741f6410793744a6ce3f120d7299b2f950d4500 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 
 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