]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/amcc/walnut/walnut.c
drivers, block: remove sil680 driver
[people/ms/u-boot.git] / board / amcc / walnut / walnut.c
index c9482094f6b33898418d3fc423b0cf4fbea389e6..b21daa0af8e624e06a2f8334e024e9d4305305ad 100644 (file)
@@ -9,6 +9,8 @@
 #include <asm/processor.h>
 #include <spd_sdram.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int board_early_init_f(void)
 {
        /*-------------------------------------------------------------------------+
@@ -71,10 +73,12 @@ int checkboard(void)
 }
 
 /*
- * initdram(int board_type) reads EEPROM via I2c. EEPROM contains all of
+ * dram_init() reads EEPROM via I2c. EEPROM contains all of
  * the necessary info for SDRAM controller configuration
  */
-phys_size_t initdram(int board_type)
+int dram_init(void)
 {
-       return spd_sdram();
+       gd->ram_size = spd_sdram();
+
+       return 0;
 }