summaryrefslogtreecommitdiff
path: root/arch/arc/mm/init.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2017-01-18 23:59:21 +0300
committerVineet Gupta <vgupta@synopsys.com>2017-01-19 01:52:43 +0300
commite497c8e52a83ebb5309ab41c8851c9cb53f28b73 (patch)
tree09224d6a1274b9c74ebd8845486af8dd6e39b113 /arch/arc/mm/init.c
parent8c47f83ba45928ce9495fcf1b29e828c28e3c839 (diff)
downloadlinux-e497c8e52a83ebb5309ab41c8851c9cb53f28b73.tar.xz
ARCv2: IOC: Use actual memory size to setup aperture size
vs. fixed 512M before. But this still assumes that all of memory is under IOC which may not be true for the SoC. Improve that later when this becomes a real issue, by specifying this from DT. Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/mm/init.c')
-rw-r--r--arch/arc/mm/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arc/mm/init.c b/arch/arc/mm/init.c
index 399e2f223d25..8c9415ed6280 100644
--- a/arch/arc/mm/init.c
+++ b/arch/arc/mm/init.c
@@ -40,6 +40,11 @@ struct pglist_data node_data[MAX_NUMNODES] __read_mostly;
EXPORT_SYMBOL(node_data);
#endif
+long __init arc_get_mem_sz(void)
+{
+ return low_mem_sz;
+}
+
/* User can over-ride above with "mem=nnn[KkMm]" in cmdline */
static int __init setup_mem_sz(char *str)
{