]> git.sur5r.net Git - u-boot/commit
spl: nand: sunxi: add support for NAND config auto-detection
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 6 Jun 2016 08:17:02 +0000 (10:17 +0200)
committerScott Wood <oss@buserror.net>
Mon, 20 Jun 2016 00:12:02 +0000 (19:12 -0500)
commit7748b4148207d6e0dca8c0b5b95975e8e64179db
treed479fbec484eee4d181118c0ea33fc7aa18b1e08
parent4e7d1b3bebc5bf5176d35ac32378bcf0ff6e5914
spl: nand: sunxi: add support for NAND config auto-detection

NAND chips are supposed to expose their capabilities through advanced
mechanisms like READID, ONFI or JEDEC parameter tables. While those
methods are appropriate for the bootloader itself, it's way to
complicated and takes too much space to fit in the SPL.

Replace those mechanisms by a dumb 'trial and error' mechanism.

With this new approach we can get rid of the fixed config list that was
used in the sunxi NAND SPL driver.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
drivers/mtd/nand/sunxi_nand_spl.c