diff options
author | Rajeshwari Shinde <rajeshwari.s@samsung.com> | 2012-12-26 20:03:13 +0000 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-01-08 10:54:33 +0900 |
commit | a0f816b6bbf4c0caad9736ccf0859f4df94cce57 (patch) | |
tree | 6411808f83e94c019112382fd88f7b7730b525bc | |
parent | a9d2ae7014d9e66dde6dd4a344308449508e4a22 (diff) | |
download | u-boot-imx-a0f816b6bbf4c0caad9736ccf0859f4df94cce57.zip u-boot-imx-a0f816b6bbf4c0caad9736ccf0859f4df94cce57.tar.gz u-boot-imx-a0f816b6bbf4c0caad9736ccf0859f4df94cce57.tar.bz2 |
SMDK5250: Initialise I2C using FDT
This patch initialises I2C using FDT.
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Acked-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
-rw-r--r-- | board/samsung/smdk5250/smdk5250.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index 268b42c..73c3ec0 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -243,24 +243,6 @@ static int board_uart_init(void) return 0; } -#ifdef CONFIG_SYS_I2C_INIT_BOARD -static int board_i2c_init(void) -{ - int i, err; - - for (i = 0; i < CONFIG_MAX_I2C_NUM; i++) { - err = exynos_pinmux_config((PERIPH_ID_I2C0 + i), - PINMUX_FLAG_NONE); - if (err) { - debug("I2C%d not configured\n", (PERIPH_ID_I2C0 + i)); - return err; - } - } - i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE); - return 0; -} -#endif - #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { @@ -271,7 +253,7 @@ int board_early_init_f(void) return err; } #ifdef CONFIG_SYS_I2C_INIT_BOARD - err = board_i2c_init(); + board_i2c_init(gd->fdt_blob); #endif return err; } |