aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-10-18 04:03:03 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-10-27 16:40:27 -0400
commitf444fce3c0aa199facc8c2be7635a4a82b84b71e (patch)
tree9969210dfdb2684828e351ff484b725776ef6c5f /arch/arm/mm
parent12ba8d1e9262ce81a695795410bd9ee5c9407ba1 (diff)
ARM: 6445/1: fixup TCM memory types
After Santosh's fixup of the generic MT_MEMORY and MT_MEMORY_NONCACHED I add this fix to the TCM memory types. The main change is that the ITCM memory is L_PTE_WRITE and DOMAIN_KERNEL which works just fine. The changed to the DTCM is just cosmetic to fit with surrounding code. Cc: Santosh Shilimkar <santosh.shilimkar@ti.com> Cc: Rickard Andersson <rickard.andersson@stericsson.com> Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/mmu.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index c32f731d56d3..d184d25e9a5f 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -265,17 +265,17 @@ static struct mem_type mem_types[] = {
265 .domain = DOMAIN_KERNEL, 265 .domain = DOMAIN_KERNEL,
266 }, 266 },
267 [MT_MEMORY_DTCM] = { 267 [MT_MEMORY_DTCM] = {
268 .prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | 268 .prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
269 L_PTE_DIRTY | L_PTE_WRITE, 269 L_PTE_WRITE,
270 .prot_l1 = PMD_TYPE_TABLE, 270 .prot_l1 = PMD_TYPE_TABLE,
271 .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN, 271 .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
272 .domain = DOMAIN_KERNEL, 272 .domain = DOMAIN_KERNEL,
273 }, 273 },
274 [MT_MEMORY_ITCM] = { 274 [MT_MEMORY_ITCM] = {
275 .prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | 275 .prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
276 L_PTE_USER | L_PTE_EXEC, 276 L_PTE_WRITE | L_PTE_EXEC,
277 .prot_l1 = PMD_TYPE_TABLE, 277 .prot_l1 = PMD_TYPE_TABLE,
278 .domain = DOMAIN_IO, 278 .domain = DOMAIN_KERNEL,
279 }, 279 },
280}; 280};
281 281