Skip to content

Commit fd3bbde

Browse files
cpackham-atlnzRussell King
authored andcommitted
ARM: 8886/1: l2x0: support parity-enable/disable on aurora
The aurora cache on the Marvell Armada-XP SoC supports the same tag parity features as the other l2x0 cache implementations. [[email protected]: use aurora specific define AURORA_ACR_PARITY_EN] Signed-off-by: Chris Packham <[email protected]> Signed-off-by: Jan Luebbe <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 0770bc9 commit fd3bbde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm/mm/cache-l2x0.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,13 @@ 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, "arm,parity-enable")) {
1497+
mask |= AURORA_ACR_PARITY_EN;
1498+
val |= AURORA_ACR_PARITY_EN;
1499+
} else if (of_property_read_bool(np, "arm,parity-disable")) {
1500+
mask |= AURORA_ACR_PARITY_EN;
1501+
}
1502+
14961503
*aux_val &= ~mask;
14971504
*aux_val |= val;
14981505
*aux_mask &= ~mask;

0 commit comments

Comments
 (0)