summaryrefslogtreecommitdiff
path: root/plat/imx/common
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2019-11-22 14:38:54 +0800
committerAnson Huang <Anson.Huang@nxp.com>2019-12-13 10:45:49 +0800
commit14a33a44fa242cb6565737bb9c43303c0a3ea13d (patch)
treefb9bc438b9033a8b89dde7e7a93764e6396debcb /plat/imx/common
parent418dd9bcdeb429223bbc4a6f0d5d11e646c08198 (diff)
plat: imx: Enable L2 ECC & parity for A72 cluster
As per design team's suggestion, L2 cache's ECC & parity should be enabled for A72 cluster. Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/common')
-rw-r--r--plat/imx/common/imx8_helpers.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/imx/common/imx8_helpers.S b/plat/imx/common/imx8_helpers.S
index 8ded1f22..0d78c6be 100644
--- a/plat/imx/common/imx8_helpers.S
+++ b/plat/imx/common/imx8_helpers.S
@@ -110,6 +110,7 @@ A72:
* --------------------------------------------------------------------
*/
mov x0, #(CORTEX_A72_L2_DATA_RAM_LATENCY_3_CYCLES << CORTEX_A72_L2CTLR_DATA_RAM_LATENCY_SHIFT)
+ orr x0, x0, #(1 << CORTEX_A72_L2CTLR_ECC_PARITY_ENABLE_SHIFT)
msr CORTEX_A72_L2CTLR_EL1, x0
isb
ret