u-boot-brain/drivers/mtd
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
..
nand NAND FSL UPM: driver re-write using the hwcontrol callback 2008-06-10 18:22:26 -05:00
nand_legacy Big white-space cleanup. 2008-05-21 00:14:08 +02:00
onenand onenand: rename 16 bit memory copy into memcpy_16() to avoid conflicts 2008-05-01 21:30:16 +02:00
spi SPI Flash subsystem 2008-06-03 20:31:34 +02:00
at45.c Big white-space cleanup. 2008-05-21 00:14:08 +02:00
cfi_flash.c Fix warnings from gcc-4.3.0 build on a ppc host 2008-06-03 19:52:52 +02:00
dataflash.c Clean up dataflash partitioning 2008-04-18 00:24:05 -07:00
jedec_flash.c MTD/CFI: Add support for 16bit legacy AMD flash 2008-03-28 11:44:23 +01:00
Makefile dataflash: Move CONFIG_HAS_DATAFLASH to Makefile 2008-04-01 07:30:51 +02:00
mw_eeprom.c drivers/mtd : move mtd drivers to drivers/mtd 2007-11-25 23:28:52 +01:00