[U-Boot] [PATCH 1/3 v2] nand: allow demand initialization
Scott Wood
scottwood at freescale.com
Fri Oct 15 20:56:36 CEST 2010
On Tue, Oct 12, 2010 at 03:35:15PM -0400, Mike Frysinger wrote:
> Add new config options to allow people to control early initialization
> of NAND. The current behavior (NAND is initialized early) is unchanged,
> but now people may choose to disable this behavior and only initialize
> NAND when it would actually be used.
>
> So that we can change the default in the future to not initialize NAND
> early on, we also introduce a CONFIG_MAYBE_NAND_EARLY_INIT option. If
> board porters do not make a choice either way, they will get a build
> warning. This should encourage board porters to opt in to one of the
> two choices by themselves. After a release or two, we can then force
> the remaining boards to enable the new config option, delete the compat
> option, and have the default behavior match the standard U-Boot policy.
>
> Signed-off-by: Mike Frysinger <vapier at gentoo.org>
> ---
> v2
> - call nand_init() in do_nandboot() too
>
> common/cmd_nand.c | 6 ++++++
> common/env_nand.c | 8 ++++++++
> drivers/mtd/nand/nand.c | 7 +++++++
> 3 files changed, 21 insertions(+), 0 deletions(-)
Applied to u-boot-nand-flash.
Changed commit message to the one from v1, as this appears to be an
accidental duplication of patch 2/3's commit message.
-Scott
More information about the U-Boot
mailing list