]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/amcc/bamboo/bamboo.c
drivers, block: remove sil680 driver
[people/ms/u-boot.git] / board / amcc / bamboo / bamboo.c
index c8d09636abceba8cf25e1ddc36af3df43423fbd7..9f642071cc5d93759752ae73bb7d9369bc13b9f8 100644 (file)
@@ -12,6 +12,8 @@
 #include <asm/ppc440.h>
 #include "bamboo.h"
 
+DECLARE_GLOBAL_DATA_PTR;
+
 void ext_bus_cntlr_init(void);
 void configure_ppc440ep_pins(void);
 int is_nand_selected(void);
@@ -436,13 +438,11 @@ int checkboard(void)
 }
 
 
-phys_size_t initdram (int board_type)
+int dram_init(void)
 {
-       long dram_size;
-
-       dram_size = spd_sdram();
+       gd->ram_size = spd_sdram();
 
-       return dram_size;
+       return 0;
 }
 
 /*----------------------------------------------------------------------------+
@@ -1880,7 +1880,7 @@ void configure_ppc440ep_pins(void)
        if (ppc440ep_core_selection[PACKET_REJ_FUNC_EN] == CORE_SELECTED)
        {
                mfsdr(SDR0_MFR, sdr0_mfr);
-               sdr0_mfr = (sdr0_mfr & ~SDR0_MFR_PKT_REJ_MASK) | SDR0_MFR_PKT_REJ_EN;;
+               sdr0_mfr = (sdr0_mfr & ~SDR0_MFR_PKT_REJ_MASK) | SDR0_MFR_PKT_REJ_EN;
                mtsdr(SDR0_MFR, sdr0_mfr);
        }