linux/drivers/mtd/nand
Matthieu CASTET 64b37b2a63 mtd: nand: add NAND_BUSWIDTH_AUTO to autodetect bus width
The driver call nand_scan_ident in 8 bit mode, then
readid or onfi detection are done (and detect bus width).
The driver should update its bus width before calling nand_scan_tail.

This work because readid and onfi are read work 8 byte mode.

Note that nand_scan_ident send command (NAND_CMD_RESET, NAND_CMD_READID, NAND_CMD_PARAM), address and read data
The ONFI specificication is not very clear for x16 device if high byte of address should be driven to 0,
but according to [1] it should be ok to not drive it during autodetection.

[1]
3.3.2. Target Initialization

[...]
The Read ID and Read Parameter Page commands only use the lower 8-bits of the data bus.
The host shall not issue commands that use a word data width on x16 devices until the host
determines the device supports a 16-bit data bus width in the parameter page.

Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2012-12-03 16:36:52 +02:00
..
bcm47xxnflash mtd: bcm47xxnflash: support NAND_CMD_STATUS 2012-12-03 16:36:52 +02:00
gpmi-nand mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
alauda.c mtd: driver _read() returns max_bitflips; mtd_read() returns -EUCLEAN 2012-05-13 23:14:23 -05:00
ams-delta.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
atmel_nand_ecc.h mtd: at91: atmel_nand: add Programmable Multibit ECC controller support 2012-07-06 18:23:25 +01:00
atmel_nand.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
au1550nd.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
autcpu12.c ARM: clps711x: Using a single definition for the PHYS and VIRT registers offset 2012-05-11 16:18:01 +02:00
bf5xx_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
cafe_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
cmx270_nand.c mtd: kill MTD_NAND_VERIFY_WRITE 2012-09-29 15:00:46 +01:00
cs553x_nand.c mtd cs553x_nand: Initialise ecc.strength before nand_scan() 2012-12-03 16:36:34 +02:00
davinci_nand.c mtd: davinci: add support for parition binding nodes 2012-11-15 19:50:30 +02:00
denali_dt.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
denali_pci.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
denali.c mtd: denali: split the generic driver and PCI layer 2012-11-15 15:37:46 +02:00
denali.h mtd: denali: add a DT driver 2012-11-15 15:37:46 +02:00
diskonchip.c mtd: diskonchip: don't warn about ARM architecture 2012-11-16 10:57:38 +02:00
docg4.c mtd: docg4: ecc.read_page() returns 0 on uncorrectable errors 2012-09-29 15:54:11 +01:00
fsl_elbc_nand.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
fsl_ifc_nand.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
fsl_upm.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
fsmc_nand.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
gpio.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
h1910.c - More robust parsing especially of xattr data in JFFS2 2012-06-01 16:55:42 -07:00
jz4740_nand.c mtd: fix a number of checkpatch complaints 2012-11-22 12:16:28 +02:00
Kconfig mtd: prepare place for BCMA NAND flash driver(s) 2012-11-22 09:32:34 +02:00
lpc32xx_mlc.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
lpc32xx_slc.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
Makefile mtd: prepare place for BCMA NAND flash driver(s) 2012-11-22 09:32:34 +02:00
mpc5121_nfc.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
mxc_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
nand_base.c mtd: nand: add NAND_BUSWIDTH_AUTO to autodetect bus width 2012-12-03 16:36:52 +02:00
nand_bbt.c mtd: nand: use NAND_BBT_SCAN_MAXBLOCKS 2012-09-29 15:54:10 +01:00
nand_bch.c mtd: cleanup style on pr_debug messages 2011-09-11 15:02:16 +03:00
nand_ecc.c mtd: spelling, capitalization, uniformity 2011-09-11 15:02:13 +03:00
nand_ids.c mtd: nand: change "AMD" manuf. ID to "AMD/Spansion" 2012-07-06 18:17:08 +01:00
nandsim.c mtd: nandsim: bugfix: fail if overridesize is too big 2012-09-29 15:54:12 +01:00
ndfc.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
nuc900_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
omap2.c mtd: remove use of __devinit 2012-11-22 12:07:03 +02:00
orion_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
pasemi_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
plat_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
ppchameleonevb.c mtd: do not use plain 0 as NULL 2012-03-27 00:53:20 +01:00
pxa3xx_nand.c UAPI Disintegration 2012-10-09 2012-10-09 15:04:25 +01:00
r852.c mtd: kill MTD_NAND_VERIFY_WRITE 2012-09-29 15:00:46 +01:00
r852.h mtd: r852: remove useless pci powerup/down from suspend/resume routines 2010-10-25 01:32:21 +01:00
rtc_from4.c mtd: flash drivers set ecc strength 2012-03-27 00:56:46 +01:00
s3c2410.c mtd: s3c2410: Fix potential NULL pointer dereference error 2012-11-18 12:44:38 +02:00
sh_flctl.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
sharpsl.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
sm_common.c mtd: nand: kill NAND_NO_AUTOINCR option 2012-05-13 23:15:38 -05:00
sm_common.h mtd: sm_common: split smartmedia and xD table 2010-05-14 01:03:46 +01:00
socrates_nand.c mtd: remove use of __devexit 2012-11-22 12:07:03 +02:00
spia.c mtd: convert remaining users to mtd_device_register() 2011-05-25 02:25:00 +01:00
tmio_nand.c mtd: kill MTD_NAND_VERIFY_WRITE 2012-09-29 15:00:46 +01:00
txx9ndfmc.c mtd: kill MTD_NAND_VERIFY_WRITE 2012-09-29 15:00:46 +01:00
xway_nand.c mtd: lantiq: Add NAND support on Lantiq XWAY SoC. 2012-09-29 15:05:18 +01:00