提交 da521387 编写于 作者: S Stefano Babic 提交者: Albert ARIBAUD

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: NStefano Babic <sbabic@denx.de>
CC: Tom Rini <tom.rini@gmail.com>
CC: Wolfgang Denk <wd@denx.de>
CC: Simon Schwarz <simonschwarzcor@gmail.com>
上级 d460587a
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册