u-boot-brain/include/linux
Wolfgang Grandegger a75a57ef6e NAND FSL UPM: driver re-write using the hwcontrol callback
This is a re-write of the NAND FSL UPM driver using the more universal
hwcontrol callback (instead of the cmdfunc callback). Here is a brief
list of furher modifications:

- For the time being, the UPM setup writing the UPM array has been
  removed from the driver and must now be done by the board specific
  code.

- The bus width definition in "struct fsl_upm_nand" is now in bits to
  comply with the corresponding Linux driver and 8, 16 and 32 bit
  accesses are supported.

- chip->dev_read is only set if fun->dev_ready != NULL, which is
  required for boards not connecting the R/B pin.

- A few issue have been fixed with MxMR bit manipulation like in the
  corresponding Linux driver.

Note: I think the "io_addr" field of "struct fsl_upm" could be removed
      as well, because the address is already determined by
      "nand->IO_ADDR_[RW]", but I'm not 100% sure.

This patch has been tested on a TQM8548 modules with the NAND chip
Micron MT29F8G08FABWP.

This patch is based on the following patches posted to this list a few
minutes ago:

  PPC: add accessor macros to clear and set bits in one shot
  83xx/85xx/86xx: add more MxMR local bus definitions

Signed-off-by: Wolfgang Grandegger <wg@grandegger.com>
Acked-by: Anton Vorontsov <avorontsov@ru.mvista.com>
2008-06-10 18:22:26 -05:00
..
byteorder Cleanup for GCC-4.x 2005-10-13 16:45:02 +02:00
mtd NAND FSL UPM: driver re-write using the hwcontrol callback 2008-06-10 18:22:26 -05:00
bitops.h * Code cleanup: 2003-06-27 21:31:46 +00:00
config.h Initial revision 2000-08-21 15:05:47 +00:00
ctype.h Initial revision 2000-08-21 15:05:47 +00:00
list.h Add configuration for IFM AEV FIFO board. 2005-08-10 15:14:32 +02:00
mc146818rtc.h Initial revision 2000-11-20 17:21:10 +00:00
mii.h Merge with /home/wd/git/u-boot/custodian/u-boot-avr32; code cleanup. 2007-04-18 16:53:52 +02:00
posix_types.h Initial revision 2001-04-28 17:59:11 +00:00
stat.h sh: Add support stat structure and stat.h 2008-03-28 14:16:14 +09:00
stddef.h Initial revision 2002-03-31 12:34:56 +00:00
string.h Scheduled for removal: strnicmp() which is unused 2006-05-03 01:00:39 +02:00
time.h Initial revision 2002-03-08 21:31:05 +00:00
types.h Initial revision 2000-08-21 15:05:47 +00:00