]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/esd/cpci2dp/cpci2dp.c
Change initdram() return type to phys_size_t
[people/ms/u-boot.git] / board / esd / cpci2dp / cpci2dp.c
index 2800420e2afde6957c914209fe6f29f40d1bcf61..54de0b80628171fd4fe39c809a2542b20b26e944 100644 (file)
@@ -26,6 +26,8 @@
 #include <command.h>
 #include <malloc.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int board_early_init_f (void)
 {
        unsigned long cntrl0Reg;
@@ -36,9 +38,9 @@ int board_early_init_f (void)
        cntrl0Reg = mfdcr(cntrl0);
        mtdcr(cntrl0, cntrl0Reg | ((CFG_EEPROM_WP | CFG_PB_LED | CFG_SELF_RST | CFG_INTA_FAKE) << 5));
 
-        /* set output pins to high */
+       /* set output pins to high */
        out32(GPIO0_OR,  CFG_EEPROM_WP);
-        /* setup for output (LED=off) */
+       /* setup for output (LED=off) */
        out32(GPIO0_TCR, CFG_EEPROM_WP | CFG_PB_LED);
 
        /*
@@ -74,7 +76,6 @@ int misc_init_f (void)
 
 int misc_init_r (void)
 {
-       DECLARE_GLOBAL_DATA_PTR;
        unsigned long cntrl0Reg;
 
        /* adjust flash start and offset */
@@ -116,7 +117,7 @@ int checkboard (void)
 
 /* ------------------------------------------------------------------------- */
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        unsigned long val;