diff options
author | Stefano Babic <sbabic@denx.de> | 2012-03-15 04:01:42 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-03-27 22:05:29 +0200 |
commit | da521387a4bde11f83b1f5b79bba0b0c30c7e5d9 (patch) | |
tree | 820af3a093009114d148de6dab659f2710a85fb5 /arch/arm/cpu/armv7 | |
parent | d460587a44de06e331041f55c30b7d1c432bff8b (diff) | |
download | u-boot-imx-da521387a4bde11f83b1f5b79bba0b0c30c7e5d9.zip u-boot-imx-da521387a4bde11f83b1f5b79bba0b0c30c7e5d9.tar.gz u-boot-imx-da521387a4bde11f83b1f5b79bba0b0c30c7e5d9.tar.bz2 |
OMAP3: SPL: do not call I2C init if no I2C is set.
Call i2c initialization in spl_board_init only if I2C
is configured for the board.
Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
CC: Wolfgang Denk <wd@denx.de>
CC: Simon Schwarz <simonschwarzcor@gmail.com>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/board.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index aabc651..1fee574 100644 --- a/arch/arm/cpu/armv7/omap3/board.c +++ b/arch/arm/cpu/armv7/omap3/board.c @@ -92,7 +92,9 @@ u32 omap_boot_device(void) void spl_board_init(void) { +#ifdef CONFIG_SPL_I2C_SUPPORT i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); +#endif } #endif /* CONFIG_SPL_BUILD */ |