From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Mon, 17 Aug 2015 09:32:58 +0100 Subject: [U-Boot] [PATCH 14/15] sunxi_nand_spl: Auto detect nand configuration parameters In-Reply-To: <1439668968-3882-15-git-send-email-hdegoede@redhat.com> References: <1439668968-3882-1-git-send-email-hdegoede@redhat.com> <1439668968-3882-15-git-send-email-hdegoede@redhat.com> Message-ID: <1439800378.3480.68.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, 2015-08-15 at 22:02 +0200, Hans de Goede wrote: > 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 Acked-by: Ian Campbell (assuming table vs. probing by nand id is OK by Scott)