diff options
Diffstat (limited to 'board/sbc8641d')
-rw-r--r-- | board/sbc8641d/sbc8641d.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/board/sbc8641d/sbc8641d.c b/board/sbc8641d/sbc8641d.c index a541d25cc3..44842d5af1 100644 --- a/board/sbc8641d/sbc8641d.c +++ b/board/sbc8641d/sbc8641d.c @@ -23,6 +23,8 @@ #include <libfdt.h> #include <fdt_support.h> +DECLARE_GLOBAL_DATA_PTR; + long int fixed_sdram (void); int board_early_init_f (void) @@ -37,7 +39,7 @@ int checkboard (void) return 0; } -phys_size_t initdram(void) +int initdram(void) { long dram_size = 0; @@ -48,7 +50,9 @@ phys_size_t initdram(void) #endif debug (" DDR: "); - return dram_size; + gd->ram_size = dram_size; + + return 0; } #if defined(CONFIG_SYS_DRAM_TEST) |