From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Thu, 16 Aug 2012 10:05:01 +0200 Subject: [U-Boot] [PATCH 14/17] ARM: SPL: Move gpmc_init() to spl_board_init() In-Reply-To: <1345066254-6911-15-git-send-email-trini@ti.com> References: <1345066254-6911-1-git-send-email-trini@ti.com> <1345066254-6911-15-git-send-email-trini@ti.com> Message-ID: <502CA9AD.6010408@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 =====================================================================