[U-Boot] [PATCH 14/17] ARM: SPL: Move gpmc_init() to spl_board_init()
Stefano Babic
sbabic at denx.de
Thu Aug 16 10:05:01 CEST 2012
On 15/08/2012 23:30, Tom Rini wrote:
> This is an OMAP/related-specific function, move calling it to
> spl_board_init() and turn on CONFIG_SPL_BOARD_INIT on the boards that
> enabled NAND and didn't enable this already.
>
> Signed-off-by: Tom Rini <trini at ti.com>
> ---
> arch/arm/cpu/armv7/omap-common/boot-common.c | 7 +++++++
> arch/arm/cpu/armv7/omap3/board.c | 3 +++
> arch/arm/lib/spl_nand.c | 1 -
> include/configs/am3517_crane.h | 1 +
> include/configs/am3517_evm.h | 1 +
> include/configs/mcx.h | 1 +
> include/configs/tam3517-common.h | 1 +
> 7 files changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/cpu/armv7/omap-common/boot-common.c b/arch/arm/cpu/armv7/omap-common/boot-common.c
> index 3406cfb..ed398fd 100644
> --- a/arch/arm/cpu/armv7/omap-common/boot-common.c
> +++ b/arch/arm/cpu/armv7/omap-common/boot-common.c
> @@ -49,6 +49,13 @@ u32 spl_boot_mode(void)
> return omap_bootmode;
> }
>
> +void spl_board_init(void)
> +{
> +#ifdef CONFIG_SPL_NAND_SUPPORT
> + gpmc_init();
> +#endif
Ok, I was not so far when I commented the previous patch ;-)
Stefano
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
More information about the U-Boot
mailing list