summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/init.h
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 20:07:45 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 22:42:05 +0900
commit34e29f7d94aa0243793081751ea0eeae598a0273 (patch)
tree7bc9a99ef4ff8f6f3abc3b8061178920c54a02d3 /arch/arm/mach-uniphier/init.h
parentdf72534121b7e593f2a8043ad1c0c86bae0aa75b (diff)
ARM: uniphier: make mem_map run-time configurable
Currently, mem_map is hard-coded, and it worked well until the last SoC. For a planned new SoC, the addresses of peripherals and DRAM will be changed. Set it up run-time. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/init.h')
-rw-r--r--arch/arm/mach-uniphier/init.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-uniphier/init.h b/arch/arm/mach-uniphier/init.h
index c6b3f3656c..b37ab2fa50 100644
--- a/arch/arm/mach-uniphier/init.h
+++ b/arch/arm/mach-uniphier/init.h
@@ -102,5 +102,13 @@ unsigned int uniphier_boot_device_raw(void);
int uniphier_have_internal_stm(void);
int uniphier_boot_from_backend(void);
int uniphier_pin_init(const char *pinconfig_name);
+#ifdef CONFIG_ARM64
+void uniphier_mem_map_init(unsigned long dram_base, unsigned long dram_size);
+#else
+static inline void uniphier_mem_map_init(unsigned long dram_base,
+ unsigned long dram_size)
+{
+}
+#endif
#endif /* __MACH_INIT_H */