]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
sunxi_nand_spl: Auto detect nand configuration parameters
authorHans de Goede <hdegoede@redhat.com>
Sat, 15 Aug 2015 19:23:08 +0000 (21:23 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:14 +0000 (12:19 +0200)
commit6178d2ad47ff7b7b5bf5dabb437f9186d5b7f7d3
tree3e998ba1a79684c632e621c679ec5020a3d25f12
parent77e531f608fa6d1ae67b2a444629d43f06a861ab
sunxi_nand_spl: Auto detect nand configuration parameters

Auto detect the nand configuration parameters, like the BROM does.

This allows us to get rid of various Kconfig settings, and is
necessary to support generic boards like the mk802 which have seen
many production runs with different nands.

The full blown u-boot/kernel nand driver uses the nand id to determine
this info, for the SPL we do as the BROM does and simply try a few
standard configs.

Note the table only contains configs which are known to actually be used,
rather then all the configs the BROM tries. This means that it may need
to be updated in the future as we add support for nand on more boards.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
drivers/mtd/nand/Kconfig
drivers/mtd/nand/sunxi_nand_spl.c