]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: add support for reading ONFI parameters from NAND device
authorFlorian Fainelli <florian@openwrt.org>
Mon, 30 Aug 2010 16:32:24 +0000 (18:32 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 24 Oct 2010 22:46:34 +0000 (23:46 +0100)
commit9a530435549a36bfaa97726d72128a6ea6152d5c
tree6dc4ab018397d5029690957b27d376e25d1c1f85
parent74dba414c88fa06f6dac7b434ef4f87f42581844
mtd: nand: add support for reading ONFI parameters from NAND device

This patch adds support for reading NAND device ONFI parameters and use
the ONFI informations to define its geometry. In case the device supports
ONFI, the onfi_version field in struct nand_chip contains the version (BCD)
and the onfi_params structure can be used by drivers to set up timings and
such. We currently only support ONFI 1.0 parameters.

Signed-off-by: Brian Norris <norris@broadcom.com>
Signed-off-by: Matthieu Castet <matthieu.castet@parrot.com>
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <ffainelli@freebox.fr>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h