]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/cobra5272/cobra5272.c
board_f: Drop return value from initdram()
[people/ms/u-boot.git] / board / cobra5272 / cobra5272.c
index 9d4554da1fe5099838e82aeead5d63893de5f532..48366763c10ce6a5e357c5c7416b7eb3034a7969 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <asm/immap.h>
 
+DECLARE_GLOBAL_DATA_PTR;
 
 int checkboard (void)
 {
@@ -16,7 +17,7 @@ int checkboard (void)
        return 0;
 };
 
-phys_size_t initdram(void)
+int initdram(void)
 {
        volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
 
@@ -26,7 +27,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)