Skip to content

Commit

Permalink
ARM: at91: Change the internal SRAM memory type MT_MEMORY_NONCACHED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wenyou Yang authored and Nicolas Ferre committed Jun 18, 2013
1 parent 0580ed3 commit 133e001
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-at91/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 133e001

Please sign in to comment.