]> git.sur5r.net Git - u-boot/commit
davinci_nand: cleanup I (minor)
authorDavid Brownell <dbrownell@users.sourceforge.net>
Tue, 28 Apr 2009 20:19:50 +0000 (13:19 -0700)
committerScott Wood <scottwood@freescale.com>
Tue, 7 Jul 2009 22:44:55 +0000 (17:44 -0500)
commitfcb774777562bb7bcdc53c608d0e6bae906ce0f6
treedbff9f0c68ff74737d550a6098e93841b8378255
parent59869ca72df8bc4e4ffa9dd17cb6673bbe010272
davinci_nand: cleanup I (minor)

Minor cleanup for DaVinci NAND code:

 - Use I/O addresses from nand_chip; CONFIG_SYS_NAND_BASE won't
   be defined when there are multiple chipselect lines in use
   (as with common 2 GByte chips).

 - Cleanup handling of EMIF control registers
    * Only need one pointer pointing to them
    * Remove incorrect and unused struct supersetting them

 - Use the standard waitfunc; we don't need a custom version

 - Partial legacy cleanup:
    * Don't initialize every board like it's a DM6446 EVM
    * #ifdef a bit more code for BROKEN_ECC

Sanity checked with small page NAND on dm355 and dm6446 EVMs;
and large page on dm355 EVM (packaged as two devices, not one).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/davinci_nand.c
include/asm-arm/arch-davinci/nand_defs.h