]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/mach-ath79/dram.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / mips / mach-ath79 / dram.c
index 5ef43a059d18483c175fec7538760a88c663f5ad..138a7f84832e05d90447e8feba34fe8112dee944 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
- *
- * SPDX-License-Identifier: GPL-2.0+
  */
 
 #include <common.h>
@@ -9,8 +8,12 @@
 #include <asm/addrspace.h>
 #include <mach/ddr.h>
 
-phys_size_t initdram(void)
+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;
 }