diff options
Diffstat (limited to 'arch/mips/mach-ath79/dram.c')
-rw-r--r-- | arch/mips/mach-ath79/dram.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/mach-ath79/dram.c b/arch/mips/mach-ath79/dram.c index c29e98c2f4..2706812b91 100644 --- a/arch/mips/mach-ath79/dram.c +++ b/arch/mips/mach-ath79/dram.c @@ -9,8 +9,12 @@ #include <asm/addrspace.h> #include <mach/ddr.h> -phys_size_t initdram(int board_type) +DECLARE_GLOBAL_DATA_PTR; + +int dram_init(void) { ddr_tap_tuning(); - return get_ram_size((void *)KSEG1, SZ_256M); + gd->ram_size = get_ram_size((void *)KSEG1, SZ_256M); + + return 0; } |