diff options
author | Tom Rini <trini@ti.com> | 2014-05-21 12:57:22 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-06 17:46:14 -0400 |
commit | 196311dc728bbb9484356547b9daa731ca2feb8d (patch) | |
tree | 51d396fd6e9abff9f008e80c74b97a6322474ffe /include/configs/am43xx_evm.h | |
parent | 87acf194a298f65a40c659036a5e413613d458e6 (diff) | |
download | u-boot-imx-196311dc728bbb9484356547b9daa731ca2feb8d.zip u-boot-imx-196311dc728bbb9484356547b9daa731ca2feb8d.tar.gz u-boot-imx-196311dc728bbb9484356547b9daa731ca2feb8d.tar.bz2 |
arm:am33xx: Rework s_init and add board_early_init_f
With the changes to the i2c framework (and adopting the omap24xx_i2c
driver to them) we can no longer call i2c functions prior to gd having
been set and cleared. When SPL booting, this is handled by setting gd
to point to SRAM in s_init. However in the cases where we are loaded
directly by ROM (memory mapped NOR or QSPI) we need to make use of the
normal hooks to slightly delay these calls.
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/configs/am43xx_evm.h')
-rw-r--r-- | include/configs/am43xx_evm.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index c1c0035..8473b0b 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -52,6 +52,15 @@ #define CONFIG_SKIP_LOWLEVEL_INIT #endif +/* + * When building U-Boot such that there is no previous loader + * we need to call board_early_init_f. This is taken care of in + * s_init when we have SPL used. + */ +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && !defined(CONFIG_SPL) +#define CONFIG_BOARD_EARLY_INIT_F +#endif + /* Now bring in the rest of the common code. */ #include <configs/ti_armv7_common.h> |