arm: juno: enable USB
[oweals/u-boot.git] / arch / mips / mach-ath79 / dram.c
index c29e98c2f4c2e0009fd843c214490d6d3c1b519e..1abe2a49e661bdc1238e045db3a63216bc071d60 100644 (file)
@@ -1,16 +1,20 @@
+// 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>
+#include <init.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;
 }