diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2019-07-12 05:46:55 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-08-29 07:58:01 +0100 |
commit | c8abbd6f9dc47dffaea5adc7172ffa59a16401e3 (patch) | |
tree | 9f2f800231fc4b412088a201ccd15fef609640f7 /arch | |
parent | 4bf4770db4f0dbf495ca6236644abb413501f6e0 (diff) | |
download | linux-stable-c8abbd6f9dc47dffaea5adc7172ffa59a16401e3.tar.gz linux-stable-c8abbd6f9dc47dffaea5adc7172ffa59a16401e3.tar.bz2 linux-stable-c8abbd6f9dc47dffaea5adc7172ffa59a16401e3.zip |
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.
[jlu@pengutronix.de: use aurora specific define AURORA_ACR_ECC_EN]
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 5 |
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; |