]> git.sur5r.net Git - u-boot/blobdiff - board/cobra5272/cobra5272.c
libfdt: migrate include/libfdt_env.h to a wrapper
[u-boot] / board / cobra5272 / cobra5272.c
index 0f3bcc592a5ff60d1f6f78ac1f43f8cac404093c..0ceaa1f772fa1d40341490350362c71079286176 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 (int board_type)
+int dram_init(void)
 {
        volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
 
@@ -26,7 +27,9 @@ phys_size_t initdram (int board_type)
        /* 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)