From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15172 invoked by alias); 8 Jun 2007 14:27:48 -0000 Received: (qmail 15164 invoked by uid 22791); 8 Jun 2007 14:27:47 -0000 X-Spam-Check-By: sourceware.org Received: from jive.SoftHome.net (HELO jive.SoftHome.net) (66.54.152.27) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 08 Jun 2007 14:27:45 +0000 Received: (qmail 32569 invoked by uid 417); 8 Jun 2007 14:27:06 -0000 Received: from shunt-smtp-out-0 (HELO softhome.net) (172.16.3.12) by shunt-smtp-out-0 with SMTP; 8 Jun 2007 14:27:06 -0000 Received: from [192.168.0.33] ([82.209.212.146]) (AUTH: PLAIN w3sg@softhome.net) by softhome.net with esmtp; Fri, 08 Jun 2007 08:26:52 -0600 From: Sergei Gavrikov To: Andrew Lunn Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <20070608140925.GD14051@lunn.ch> References: <1181310684.7166.14.camel@sg-ubuntu> <20070608140925.GD14051@lunn.ch> Date: Sun, 10 Jun 2007 11:01:00 -0000 Message-Id: <1181312864.8219.6.camel@sg-ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.8.1 X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Question: Banked FLASH X-SW-Source: 2007-06/txt/msg00099.txt.bz2 Andrew, Thank you! I appreciate your underlying ideas. I will try to finalize that issue. Sergei Andrew Lunn wrote: > On Fri, Jun 08, 2007 at 04:51:23PM +0300, Sergei Gavrikov wrote: > > Hello, > > > > Does exist a way (like FLASH_P2V macro) to manage flash banking using > > _generic_PIO_? I have 1 part of the solid 2M Intel 28fxxx flash, but I > > cannot use A20 line in a address mode. That line is a generic PIO line. > > Should I copy a generic 28fxxx driver code in my hal/devs/flash and > > tweak that source or there is more elegant way in eCos flash devices > > world? > > There is no existing solution to this that i know of. > > The flash_v2 branch has some interesting possibilities. It supports > multiple flash drivers in a flexible way. It also supports a form of > virtual addresses. So with the V2 branch you could have the 28fxxx > driver at the physical address of the flash, and it would drive which > ever bank is currently mapped in. On top of that you have a virtual > driver which implements the full 2M address range but at a different > address. It would set the GPIO line as appropriate and then pass > requests onto the physical driver, mapping the addresses as > appropriate. > > If you do decide to implement this, it would be great to have it > contributed back. It should be possible to make the virtual driver > generic with a hardware specific package which implements the bank > manipulation function. I can help with the design and testing. It is > something i thought about doing a while ago, but never got around to. > > Andrew -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss