aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-at91
diff options
context:
space:
mode:
authorWenyou Yang <wenyou.yang@atmel.com>2013-06-07 22:17:43 -0400
committerNicolas Ferre <nicolas.ferre@atmel.com>2013-06-18 04:20:30 -0400
commit133e00116b5bc76110bcc41ded369489209b641f (patch)
tree14254e2e4d10716952cf9703156de162bf7f83e7 /arch/arm/mach-at91
parent0580ed363789c8fc9844df6904f471ca6e82fa07 (diff)
ARM: at91: Change the internal SRAM memory type MT_MEMORY_NONCACHED
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>
Diffstat (limited to 'arch/arm/mach-at91')
-rw-r--r--arch/arm/mach-at91/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-at91/setup.c b/arch/arm/mach-at91/setup.c
index e2f4bdd146d6..942dc00f1227 100644
--- a/arch/arm/mach-at91/setup.c
+++ b/arch/arm/mach-at91/setup.c
@@ -80,7 +80,7 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length)
80 80
81 desc->pfn = __phys_to_pfn(base); 81 desc->pfn = __phys_to_pfn(base);
82 desc->length = length; 82 desc->length = length;
83 desc->type = MT_DEVICE; 83 desc->type = MT_MEMORY_NONCACHED;
84 84
85 pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n", 85 pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n",
86 base, length, desc->virtual); 86 base, length, desc->virtual);