summaryrefslogtreecommitdiffstats
path: root/arch/mips/mach-ath79/dram.c
diff options
context:
space:
mode:
authorWills Wang <wills.wang@live.com>2016-03-16 16:59:52 +0800
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-05-21 01:25:50 +0200
commit1d3d0f1f1cd8bac8ea0135c92a2bcd5020abfb1d (patch)
treef860e8ae8b68fd43f8dd19412aed0e7f6da51585 /arch/mips/mach-ath79/dram.c
parent4a48cfc4e57b4b247d94a614b2fbfcf03aa45ea1 (diff)
downloadtalos-obmc-uboot-1d3d0f1f1cd8bac8ea0135c92a2bcd5020abfb1d.tar.gz
talos-obmc-uboot-1d3d0f1f1cd8bac8ea0135c92a2bcd5020abfb1d.zip
mips: add base support for QCA/Atheros ath79 SOCs
This patch add some common code for QCA/Atheros ath79 SOCs such as DDR tuning, chip reset and CPU detection. Signed-off-by: Wills Wang <wills.wang@live.com>
Diffstat (limited to 'arch/mips/mach-ath79/dram.c')
-rw-r--r--arch/mips/mach-ath79/dram.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/mips/mach-ath79/dram.c b/arch/mips/mach-ath79/dram.c
new file mode 100644
index 0000000000..c29e98c2f4
--- /dev/null
+++ b/arch/mips/mach-ath79/dram.c
@@ -0,0 +1,16 @@
+/*
+ * Copyright (C) 2015-2016 Wills Wang <wills.wang@live.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#include <common.h>
+#include <linux/sizes.h>
+#include <asm/addrspace.h>
+#include <mach/ddr.h>
+
+phys_size_t initdram(int board_type)
+{
+ ddr_tap_tuning();
+ return get_ram_size((void *)KSEG1, SZ_256M);
+}
OpenPOWER on IntegriCloud