1
0
Fork 0

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>
utp
Stefano Babic 2012-03-15 04:01:42 +00:00 committed by Albert ARIBAUD
parent d460587a44
commit da521387a4
1 changed files with 2 additions and 0 deletions

View File

@ -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 */