From: Oliver Ford Date: Mon, 01 Dec 2008 19:03:47 +0000 Subject: [U-Boot] [Fwd: Re: iPAQ 21x support (+PXA3xx NAND flash and MMC)] Message-ID: <49343513.7010806@oliford.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Whoops, I think I missed the list on this one. Daniel Mack wrote: > Yes, absolutely - to me. I'm sitting on this at this very moment :) > > I was also thinking about implementing this as a PXA3xx generic layer > for small pages, large pages, 8bit and 16bit so the same code does not > need to be copied to all the board implementations over and over again. > > But I'm not sure whether there are any plans to do this as I didn't > follow the development of this project for a long time. > > Anyways, I'd appreciate if you could send over what you got. > Ok, I've currently got it inside my board code directory but it wouldn't be much to generalise. There's a copy here: http://www.oliford.co.uk/hpipaq214/public/u-boot/board/ipaq214/nand.c http://www.oliford.co.uk/hpipaq214/public/u-boot/board/ipaq214/pxa3xx-nand.h Mostly it's the same as the linux one except that I've written a function called pxa3xx_nand_no_irq_wait_completion_timeout() which mimics the call to wait_for_completion_timeout() that would be made with IRQs avaliable. Oliver