Commit a641b91f authored by Russell King's avatar Russell King

[ARM] Allow ECC and cache write allocations on ARMv5 and higher CPUs.

All current CPUs of ARMv5 or later can have ECC memory and can
support write allocations.
parent 8173e595
...@@ -309,9 +309,9 @@ static void __init build_mem_type_table(void) ...@@ -309,9 +309,9 @@ static void __init build_mem_type_table(void)
const char *policy; const char *policy;
/* /*
* ARMv5 can use ECC memory. * ARMv5 and higher can use ECC memory.
*/ */
if (cpu_arch == CPU_ARCH_ARMv5) { if (cpu_arch >= CPU_ARCH_ARMv5) {
mem_types[MT_VECTORS].prot_l1 |= ecc_mask; mem_types[MT_VECTORS].prot_l1 |= ecc_mask;
mem_types[MT_MEMORY].prot_sect |= ecc_mask; mem_types[MT_MEMORY].prot_sect |= ecc_mask;
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment