]> git.karo-electronics.de Git - linux-beck.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)
commitd1e1f4e42b5df063712ca2926e50c07b95c96b96
tree6dc4ab018397d5029690957b27d376e25d1c1f85
parent42af8b58fb5ec97214e85780db71bb9d60541fcc
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