From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [212.68.212.198] (helo=barnabe.hellea.be ident=qmailr) by pentafluge.infradead.org with smtp (Exim 3.22 #1 (Red Hat Linux)) id 18MoiE-00045U-00 for ; Fri, 13 Dec 2002 12:14:38 +0000 Date: Fri, 13 Dec 2002 12:50:55 +0100 From: Geoffroy Stevenne To: mtd-linux@lists.infradead.org Message-Id: <20021213125055.04adf242.geof@hellea.com> In-Reply-To: <200212121540.43586.tglx@linutronix.de> References: <20021212140546.3607a3e0.geof@hellea.com> <200212121540.43586.tglx@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: bbram access problems Resent-Message-Id: <20021213134454.7a00cf32.geof@hellea.com> Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: Le Thu, 12 Dec 2002 15:40:43 +0100 Thomas Gleixner a écrit: > from slram.c > NOTE: > With slram it's only possible to map a contigous memory region. > > So you can't access it with slram, as the BBSRAM is a device with > paged access. All you have to do, is copy slram.c to bbram.c and add > an additional parameter, which tells the driver the number of > pages.available. Then modify the erase / read / write functions to do > the page selection depending on the address you have to access. > If you think this is out of your league, then hope, that somebody does > this for you sometimes, or ask one of the experts to help you for a > little fee immidiately :) > We should be able to do this. Thanks for your suggestions and stay tuned for more feedback! Thanks, Geof