Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 133e0011 authored by Wenyou Yang's avatar Wenyou Yang Committed by Nicolas Ferre
Browse files

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: default avatarWenyou Yang <wenyou.yang@atmel.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 0580ed36
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -80,7 +80,7 @@ void __init at91_init_sram(int bank, unsigned long base, unsigned int length)


	desc->pfn = __phys_to_pfn(base);
	desc->pfn = __phys_to_pfn(base);
	desc->length = length;
	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",
	pr_info("AT91: sram at 0x%lx of 0x%x mapped at 0x%lx\n",
		base, length, desc->virtual);
		base, length, desc->virtual);