diff mbox

[U-Boot,1/1] OMAP3: igep00x0: add CONFIG_SPL_BOARD_INIT for CONFIG_SPL_NAND_SUPPORT

Message ID 1356699113-30731-1-git-send-email-javier.martinez@collabora.co.uk
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Javier Martinez Canillas Dec. 28, 2012, 12:51 p.m. UTC
When booting an IGEPv2 board from NAND with SPL, U-Boot hangs
trying to read the OMAP General Purpose Memory Controller (GPMC).

The reason is that the GPMC initialization function is called
inside spl_board_init() and this function is only executed when
CONFIG_SPL_BOARD_INIT is defined.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
---
 include/configs/igep00x0.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Enric Balletbo Serra Dec. 28, 2012, 12:55 p.m. UTC | #1
2012/12/28 Javier Martinez Canillas <javier@dowhile0.org>:
> When booting an IGEPv2 board from NAND with SPL, U-Boot hangs
> trying to read the OMAP General Purpose Memory Controller (GPMC).
>
> The reason is that the GPMC initialization function is called
> inside spl_board_init() and this function is only executed when
> CONFIG_SPL_BOARD_INIT is defined.
>
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> ---
>  include/configs/igep00x0.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
> index 47f637e..2110e64 100644
> --- a/include/configs/igep00x0.h
> +++ b/include/configs/igep00x0.h
> @@ -318,6 +318,7 @@
>  #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION   1
>  #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME       "u-boot.img"
>
> +#define CONFIG_SPL_BOARD_INIT
>  #define CONFIG_SPL_LIBCOMMON_SUPPORT
>  #define CONFIG_SPL_LIBDISK_SUPPORT
>  #define CONFIG_SPL_I2C_SUPPORT
> --
> 1.7.7.6
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>
Tom Rini Jan. 11, 2013, 2:41 p.m. UTC | #2
On Fri, Dec 28, 2012 at 02:51:53AM -0000, Javier Martinez Canillas wrote:

> When booting an IGEPv2 board from NAND with SPL, U-Boot hangs
> trying to read the OMAP General Purpose Memory Controller (GPMC).
> 
> The reason is that the GPMC initialization function is called
> inside spl_board_init() and this function is only executed when
> CONFIG_SPL_BOARD_INIT is defined.
> 
> Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
> Acked-by: Enric Balletbo i Serra <eballetbo@iseebcn.com>

Applied to u-boot-ti/master, thanks!
diff mbox

Patch

diff --git a/include/configs/igep00x0.h b/include/configs/igep00x0.h
index 47f637e..2110e64 100644
--- a/include/configs/igep00x0.h
+++ b/include/configs/igep00x0.h
@@ -318,6 +318,7 @@ 
 #define CONFIG_SYS_MMC_SD_FAT_BOOT_PARTITION	1
 #define CONFIG_SPL_FAT_LOAD_PAYLOAD_NAME	"u-boot.img"
 
+#define CONFIG_SPL_BOARD_INIT
 #define CONFIG_SPL_LIBCOMMON_SUPPORT
 #define CONFIG_SPL_LIBDISK_SUPPORT
 #define CONFIG_SPL_I2C_SUPPORT