From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh.shilimkar@ti.com (Santosh Shilimkar) Date: Fri, 07 Oct 2011 23:50:04 +0530 Subject: [PATCH 1/4] ARM: Add __arm_ioremap_exec for mapping external memory as MT_MEMORY In-Reply-To: <20111007181621.GJ6324@atomide.com> References: <20111005004339.26980.31149.stgit@kaulin.local> <20111005004539.26980.52409.stgit@kaulin.local> <20111005220619.GC6324@atomide.com> <4E8E9EE8.8010106@ti.com> <20111007144349.GE6324@atomide.com> <4E8F14A6.5050402@ti.com> <20111007151116.GI6324@atomide.com> <4E8F395B.9070203@ti.com> <20111007181621.GJ6324@atomide.com> Message-ID: <4E8F42D4.7030502@ti.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Friday 07 October 2011 11:46 PM, Tony Lindgren wrote: > * Santosh Shilimkar [111007 10:05]: >> >> I initially tried some thing similar but the issue was GP and >> HS devices. SRAM_PA isn't same on GP and EMU device and hence >> did that dynamically. One way is I can make GP and HS >> device SRAM_PA same for OMAP4 (Will loose 16 KB of >> SRAM on OMAP4 GP). It's ok to loose that 16 KB SRAM >> for OMAP4 with errata enabled. > > Oh yeah, the beginning is different too, I forgot that. > >> Below change works on both GP and HS device >> If you are OK with it, I can update errata patch accordingly. > > OK to me to loose 16KB when the errata is enabled. That can > be fixed later on for example by passing the SRAM area from > device tree. > Yep. > I assume now you can add the mapping to io.c instead? If so, > then it's easier to apply the patches whatever way makes more > sense. > io.c change I took as you suggested. The below change on top of it. I just updated PM branch with this change. Thanks for the tip. The errata code looks bit more clean now. :) Regards Santosh