]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/m5249evb/m5249evb.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / freescale / m5249evb / m5249evb.c
index b8544292a7474cf5f5965aba3bdc85076fb10f66..d3c2acd08985e208b4bb701c489c308e74043704 100644 (file)
@@ -10,6 +10,8 @@
 #include <malloc.h>
 #include <asm/immap.h>
 
+DECLARE_GLOBAL_DATA_PTR;
+
 int checkboard (void) {
        ulong val;
        uchar val8;
@@ -29,7 +31,7 @@ int checkboard (void) {
 };
 
 
-phys_size_t initdram(void)
+int initdram(void)
 {
        unsigned long   junk = 0xa5a59696;
 
@@ -82,7 +84,9 @@ phys_size_t initdram(void)
        mbar_writeLong(MCFSIM_DACR0, 0x0000b364);  /* Enable DACR0[IMRS] (bit 6); RE remains enabled */
        *((volatile unsigned long *) 0x800) = junk; /* Access RAM to initialize the mode register */
 
-       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+
+       return 0;
 };