NAND: Add 16bit NAND support for the NDFC
authorAlex Waterman <awaterman@dawning.com>
Thu, 19 May 2011 19:08:36 +0000 (15:08 -0400)
committerScott Wood <scottwood@freescale.com>
Fri, 1 Jul 2011 20:56:52 +0000 (15:56 -0500)
commiteced4626e4d8ea2fd2662045dc7aad0f07db7a41
treeb69ea937b15426b9a4c19521ee5f8420531cee84
parentc9494866df835bcee68e17339aec1090faa704da
NAND: Add 16bit NAND support for the NDFC

This patch adds support for 16 bit NAND devices attached to the
NDFC on ppc4xx processors. Two config entries were added:

  CONFIG_SYS_NDFC_16        - Setting this tells the NDFC that a
      16 bit device is attached.
  CONFIG_SYS_NDFC_EBC0_CFG  - This is for the External Bus
      Controller configuration register.

Also, a new ndfc_read_byte() function was added which does not
first convert the data to little endian.

The NAND SPL was also modified to do 16bit bad block testing
when a 16 bit chip is being used.

Signed-off-by: Alex Waterman <awaterman@dawning.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
README
drivers/mtd/nand/ndfc.c
nand_spl/nand_boot.c