[PATCH] command function for nand flash through IDE

Thomas Gleixner tglx at linutronix.de
Mon Dec 20 03:09:44 EST 2004


On Thu, 2004-12-16 at 21:11 +0800, William J Beksi wrote:
> Hi,
> This driver includes command and select chip functions specifically for  
> accessing nand flash through an IDE port. Should be useful for anyone 
> developing and testing on a PC. It works with the latest MTD snapshot.

Works == compiles ?

Do you expect, that the read/write/verify functions in nand_base.c will
work? Your IO_ADDR_R/W values are representing an I/O port address so
the readb/writeb macros in the generic read/write/verify functions will
just oops.

It's definitely not necessary to copy the command function. Please read
the NAND API documentation and use an appropriate hw_control function
(See the address lines based example). 

tglx






More information about the linux-mtd mailing list