summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/io.c
diff options
context:
space:
mode:
authorSantosh Shilimkar2013-02-15 13:35:49 +0100
committerSantosh Shilimkar2013-03-19 08:27:03 +0100
commit1348bbf942ebf21db7ff235f9bbdf9cd36be3ffe (patch)
tree6fa6463d418ea8a5fd79d6ef1a55f8fe7b9f1b5d /arch/arm/mach-omap2/io.c
parentARM: OMAP5: Update SAR memory layout for WakeupGen (diff)
downloadkernel-qcow2-linux-1348bbf942ebf21db7ff235f9bbdf9cd36be3ffe.tar.gz
kernel-qcow2-linux-1348bbf942ebf21db7ff235f9bbdf9cd36be3ffe.tar.xz
kernel-qcow2-linux-1348bbf942ebf21db7ff235f9bbdf9cd36be3ffe.zip
ARM: OMAP5: Make errata i688 workaround available
Errata i688 is also applicable for OMAP5 based devices. Update the code so that it can be enabled on OMAP5 devices. Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/io.c')
-rw-r--r--arch/arm/mach-omap2/io.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c
index 2c3fdd65387b..2bef5a7e6af8 100644
--- a/arch/arm/mach-omap2/io.c
+++ b/arch/arm/mach-omap2/io.c
@@ -271,6 +271,14 @@ static struct map_desc omap54xx_io_desc[] __initdata = {
.length = L4_PER_54XX_SIZE,
.type = MT_DEVICE,
},
+#ifdef CONFIG_OMAP4_ERRATA_I688
+ {
+ .virtual = OMAP4_SRAM_VA,
+ .pfn = __phys_to_pfn(OMAP4_SRAM_PA),
+ .length = PAGE_SIZE,
+ .type = MT_MEMORY_SO,
+ },
+#endif
};
#endif
@@ -323,6 +331,7 @@ void __init omap4_map_io(void)
void __init omap5_map_io(void)
{
iotable_init(omap54xx_io_desc, ARRAY_SIZE(omap54xx_io_desc));
+ omap_barriers_init();
}
#endif
/*