]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: at91: Change the internal SRAM memory type MT_MEMORY_NONCACHED
authorWenyou Yang <wenyou.yang@atmel.com>
Sat, 8 Jun 2013 02:17:43 +0000 (02:17 +0000)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 18 Jun 2013 08:20:30 +0000 (10:20 +0200)
Because MT_DEVICE is not executable in armv7, we change
the internal SRAM memory type to MT_MEMORY_NONCACHED.
As it seems that caching this internal SRAM memory is not necessary,
we chose the this memory type.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/setup.c

index e2f4bdd146d605baaee897e65c6b4af04dc3867b..942dc00f12275893dd1ae2eb0257fbef2f396f85 100644 (file)
@@ -80,7 +80,7 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length)
 
        desc->pfn = __phys_to_pfn(base);
        desc->length = length;
-       desc->type = MT_DEVICE;
+       desc->type = MT_MEMORY_NONCACHED;
 
        pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n",
                base, length, desc->virtual);