From: Rui Sousa Date: Wed, 23 May 2007 16:37:23 +0200 Subject: [U-Boot-Users] [RFC] Complex MAPPING support on CFI driver In-Reply-To: References: <20070523114810.GA7092@michl.2n.cz> <20070523135442.2C39535264A@atlas.denx.de> Message-ID: <200705231637.23352.rui.sousa@laposte.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 23 May 2007 16:27, Andrew Dyer wrote: Hi Andrew, > On 5/23/07, Wolfgang Denk wrote: > > In message <20070523114810.GA7092@michl.2n.cz> you wrote: > > > On Wed, May 23, 2007 at 12:58:45PM +0200, Rui Sousa wrote: > > > > Unfortunately this only takes care of writting operations. Support > > > > for read would mean further extensive modifications (introduce some > > > > flash_read() function and use it from cp, md, jffs2, ... commands). > > > > > > Posibly... if addr2info returns structure pointer in question it could > > > also toggle the right gpio line. And it would be nice to have just one > > > addr2info implementation, right Tolunay? ;-) > > > > There is no hook anywhere that would trigger when running a command > > like > > The OP didn't mention his architecture, It's based on ARM11core. > but I thought using virtual > memory support might allow him to trap on every access to his flash > and do the appropriate fixup. Yes, but that seemed overly complex and too expensive (performance wise). We would need to add interrupt handling code and some extra MMU setup functions. Rui