Skip to content

Commit c8abbd6

Browse files
cpackham-atlnzRussell King
authored andcommitted
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]>
1 parent 4bf4770 commit c8abbd6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/mm/cache-l2x0.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,11 @@ static void __init aurora_of_parse(const struct device_node *np,
14931493
mask |= AURORA_ACR_FORCE_WRITE_POLICY_MASK;
14941494
}
14951495

1496+
if (of_property_read_bool(np, "marvell,ecc-enable")) {
1497+
mask |= AURORA_ACR_ECC_EN;
1498+
val |= AURORA_ACR_ECC_EN;
1499+
}
1500+
14961501
if (of_property_read_bool(np, "arm,parity-enable")) {
14971502
mask |= AURORA_ACR_PARITY_EN;
14981503
val |= AURORA_ACR_PARITY_EN;

0 commit comments

Comments
 (0)