]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/freescale/m5272c3/m5272c3.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / freescale / m5272c3 / m5272c3.c
index 9fab24ebb9de422fed009e7ef1153c13700064de..bbe06ba9dfc59d1153da109efdbf3a86cc93280a 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/immap.h>
 #include <asm/io.h>
 
+DECLARE_GLOBAL_DATA_PTR;
 
 int checkboard (void) {
        puts ("Board: ");
@@ -18,7 +19,7 @@ int checkboard (void) {
        return 0;
        };
 
-phys_size_t initdram(void)
+int initdram(void)
 {
        sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM);
 
@@ -28,7 +29,9 @@ phys_size_t initdram(void)
        /* Dummy write to start SDRAM */
        *((volatile unsigned long *)0) = 0;
 
-       return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+       gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
+
+       return 0;
        };
 
 int testdram (void) {