u-boot-brain/drivers/mtd
Fabio Estevam a430e91643 mtd: nand: mxc_nand: Fix is_16bit_nand()
Currently is_16bit_nand() is a per SoC function and it decides the bus nand
width by reading some boot related registers.

This method works when NAND is the boot medium, but does not work if another
boot medium is used. For example: booting from a SD card and then using NAND
to store the environment variables, would lead to the following error:

NAND bus width 16 instead 8 bit
No NAND device found!!!
0 MiB

Use CONFIG_SYS_NAND_BUSWIDTH_16BIT symbol to decide the bus width.

If it is defined in the board file, then consider 16-bit NAND bus-width,
otherwise assume 8-bit NAND is used.

This also aligns with Documentation/devicetree/bindings/mtd/nand.txt, which
states:

nand-bus-width : 8 or 16 bus width if not present 8

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Reviewed-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
2013-04-12 07:55:03 +02:00
..
nand mtd: nand: mxc_nand: Fix is_16bit_nand() 2013-04-12 07:55:03 +02:00
onenand SPL: ONENAND: Fix onenand_spl_load_image implementation. 2013-03-08 16:41:14 -05:00
spi Merge branch 'u-boot/master' into 'u-boot-arm/master' 2013-03-28 18:50:01 +01:00
ubi include/linux/byteorder: import latest endian definitions from linux 2012-11-04 11:00:34 -07:00
at45.c drivers/mtd: Move conditional compilation to Makefile 2008-08-13 01:40:42 +02:00
cfi_flash.c cfi_flash: Report Advanced Sector Protection (PPB) with flinfo cmd 2013-01-10 14:40:00 +01:00
cfi_mtd.c CFI: fix warning: variable ... set but not used 2011-10-09 23:24:49 +02:00
dataflash.c drivers/mtd/dataflash.c: Fix GCC 4.6 warning 2011-11-16 21:28:47 +01:00
ftsmc020.c ftsmc020: fix relocation 2011-05-12 23:43:27 +02:00
jedec_flash.c add STM29F400BB to table of supported legacy flashs 2012-02-09 09:45:53 +01:00
Makefile st_smi: Add support for SPEAr SMI driver 2012-07-07 14:07:38 +02:00
mtdconcat.c linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
mtdcore.c linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
mtdpart.c linux/compat.h: rename from linux/mtd/compat.h 2012-04-30 16:54:51 +02:00
mw_eeprom.c Update i386 code (sc520_cdp) 2008-09-09 11:48:53 +02:00
st_smi.c MTD: SPEAr SMI: Add write support for length < 4 bytes 2012-07-07 14:07:44 +02:00