[U-Boot] [PATCH] arm: socfpga: Fix: Compile MCR instruction on ARM 32-bit only
Ley Foon Tan
ley.foon.tan at intel.com
Thu Jul 12 11:13:34 UTC 2018
MCR instruction only available in ARM 32-bit. So, compile MCR instruction
when ARM 32-bit is enabled.
Signed-off-by: Ley Foon Tan <ley.foon.tan at intel.com>
---
arch/arm/mach-socfpga/board.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c
index cb6530f..26d84be 100644
--- a/arch/arm/mach-socfpga/board.c
+++ b/arch/arm/mach-socfpga/board.c
@@ -19,6 +19,7 @@
DECLARE_GLOBAL_DATA_PTR;
void s_init(void) {
+#ifndef CONFIG_ARM64
/*
* Preconfigure ACTLR, make sure Write Full Line of Zeroes is disabled.
* This is optional on CycloneV / ArriaV.
@@ -29,6 +30,7 @@ void s_init(void) {
"isb\n"
"dsb\n"
::"r"(0x0));
+#endif
}
/*
--
2.7.4
More information about the U-Boot
mailing list