]> Git Repo - u-boot.git/blobdiff - arch/mips/mach-ath79/dram.c
common: Drop asm/global_data.h from common header
[u-boot.git] / arch / mips / mach-ath79 / dram.c
index c29e98c2f4c2e0009fd843c214490d6d3c1b519e..545b1199e1063d4ac1ee7ea3f3cbe14eff06e1e6 100644 (file)
@@ -1,16 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2015-2016 Wills Wang <[email protected]>
- *
- * SPDX-License-Identifier: GPL-2.0+
  */
 
 #include <common.h>
+#include <init.h>
+#include <asm/global_data.h>
 #include <linux/sizes.h>
 #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;
 }
This page took 0.025625 seconds and 4 git commands to generate.