From mboxrd@z Thu Jan 1 00:00:00 1970 From: lanmanck Date: Fri, 29 May 2009 12:49:52 +0800 (CST) Subject: [U-Boot] hi,guys,about the nand flash driver Message-ID: <8741663.90171243572592561.JavaMail.coremail@bj163app88.163.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de hi: i am going to port uboot1.1.6 nand flash driver to my arm926ejs board.use /drivers/nand/nand.c. not nand_legacy.c . out cpu chip has a nand flash controller,the program flow is as below: 1?set address to controller's register 2?set command to controller's register 3?write controller's special register,so that the 2 steps above can execute. 4?wait for the steps above to be completed ,through another register. 5?now program the data. the problem is; i don't konw how to set struct nand_chip's func point because of the nand controller: xxx_hwcontrol(): the ale,cle cannot be controlled by program. IO_ADDRW:what's it? now i think i just need to write the fllowing functions: wirtebyte,readbyte,writebuf,readbuf, can anyone tell me if i am right? or give me some advise? thank you.