[U-Boot] [PATCH] nand/spl: Assuming a static nand page size to reduce code size
Scott Wood
scottwood at freescale.com
Tue Apr 5 20:48:29 CEST 2011
On Tue, Apr 05, 2011 at 10:30:45AM -0500, Matthew McClintock wrote:
> Change variables to const to reduce code size, these values are
> hardcoded via defines anyways so we might as well assume they
> are constants
>
> Signed-off-by: Matthew McClintock <msm at freescale.com>
> cc: Scott Wood <scottwood at freescale.com>
> ---
> With this change we can reduce the size of the nand_spl by
> 148 bytes with my particular board/compiler
When building for MPC8315ERDB_NAND, I get:
nand_boot_fsl_elbc.c: In function 'nand_load':
nand_boot_fsl_elbc.c:54:20: error: 'CONFIG_NAND_OR_PRELIM' undeclared (first use in this function)
nand_boot_fsl_elbc.c:54:20: note: each undeclared identifier is reported only once for each function it appears in
It appears 85xx calls it CONFIG_NAND_OR_PRELIM, and 83xx calls it
CONFIG_SYS_NAND_OR_PRELIM. The latter seems like what we should be
using.
I can't figure out what's "prelim" about it either, but that's another
matter. :-)
-Scott
More information about the U-Boot
mailing list