]> git.sur5r.net Git - u-boot/blobdiff - board/st/nhk8815/nhk8815.c
i.MX28: Add cache support to MXS NAND driver
[u-boot] / board / st / nhk8815 / nhk8815.c
index 1fa506a889a8ebea6a0565c51e5eacc51de9e674..9b62011277a28b0abcf39d5ab0186ee3b45a5574 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #include <common.h>
+#include <netdev.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 
@@ -81,11 +82,27 @@ int board_late_init(void)
 
 int dram_init(void)
 {
-       /* set dram bank start addr and size */
+       gd->ram_size = get_ram_size(CONFIG_SYS_SDRAM_BASE,
+                                   CONFIG_SYS_SDRAM_SIZE);
+       return 0;
+}
+
+void dram_init_banksize(void)
+{
        gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
        gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE;
 
        gd->bd->bi_dram[1].start = PHYS_SDRAM_2;
        gd->bd->bi_dram[1].size = PHYS_SDRAM_2_SIZE;
-       return 0;
 }
+
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#ifdef CONFIG_SMC91111
+       rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+       return rc;
+}
+#endif