[PATCH] command function for nand flash through IDE

William J Beksi wjbeksi at setabox.com
Thu Dec 30 23:14:32 EST 2004


Thomas Gleixner wrote:

> Implement hwcontrol function
>
>case CLE: this->io_addr_w = IDE_IO_BASE+1; break;
>case nCLE: this->io_addr_w = IDE_IO_BASE; break;
>case ALE: this->io_addr_w = IDE_IO_BASE+2; break;
>case nALE: this->io_addr_w = IDE_IO_BASE; break;
>
>There is also an example in the NAND API documentation.
>  
>
Hi Thomas,
I've implemented the hwcontrol function as per the NAND API 
documentation. I did not use the ioremap because the i/o port addresses 
170-17F and 1F0-1FF are reserved for the IDE controller. I've spent the 
last week testing this driver and I hope it can be commited to the cvs 
if you find it useful.

Thank you for your help,
William
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ide.c
Type: text/x-c
Size: 3948 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20041231/c0eaa2ea/attachment.bin 


More information about the linux-mtd mailing list