aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <[email protected]>2019-07-12 05:46:55 +0100
committerRussell King <[email protected]>2019-08-29 07:58:01 +0100
commitc8abbd6f9dc47dffaea5adc7172ffa59a16401e3 (patch)
tree9f2f800231fc4b412088a201ccd15fef609640f7
parent4bf4770db4f0dbf495ca6236644abb413501f6e0 (diff)
ARM: 8890/1: l2x0: add marvell,ecc-enable property for aurora
The aurora cache on the Marvell Armada-XP SoC supports ECC protection for the L2 data arrays. Add a "marvell,ecc-enable" device tree property which can be used to enable this. [[email protected]: use aurora specific define AURORA_ACR_ECC_EN] Signed-off-by: Chris Packham <[email protected]> Signed-off-by: Jan Luebbe <[email protected]> Signed-off-by: Russell King <[email protected]>
-rw-r--r--arch/arm/mm/cache-l2x0.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c
index 46a616ec6b0c..12c26eb88afb 100644
--- a/arch/arm/mm/cache-l2x0.c
+++ b/arch/arm/mm/cache-l2x0.c
@@ -1493,6 +1493,11 @@ static void __init aurora_of_parse(const struct device_node *np,
mask |= AURORA_ACR_FORCE_WRITE_POLICY_MASK;
}
+ if (of_property_read_bool(np, "marvell,ecc-enable")) {
+ mask |= AURORA_ACR_ECC_EN;
+ val |= AURORA_ACR_ECC_EN;
+ }
+
if (of_property_read_bool(np, "arm,parity-enable")) {
mask |= AURORA_ACR_PARITY_EN;
val |= AURORA_ACR_PARITY_EN;