]> git.sur5r.net Git - u-boot/commit
NAND: add support for reading ONFI page table
authorFlorian Fainelli <florian@openwrt.org>
Fri, 25 Feb 2011 00:01:34 +0000 (00:01 +0000)
committerScott Wood <scottwood@freescale.com>
Fri, 1 Apr 2011 19:49:08 +0000 (14:49 -0500)
commit0272c718ba69c60a9d719db6806971d98db98090
tree1b7dc349248e26f3e641871312b379b1577fbe97
parente935a374dbe5c745fdde05b2b07ced0bbe70887f
NAND: add support for reading ONFI page table

This patch adds support for reading an ONFI page parameter from a NAND
device supporting it. If this is the case, struct nand_chip onfi_version
member contains the supported ONFI version, 0 otherwise.

This allows NAND drivers past nand_scan_ident to set the best timings for the
NAND chip.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/nand_base.c
include/linux/mtd/nand.h