diff options
author | Amar <amarendra.xt@samsung.com> | 2013-07-10 10:42:29 +0530 |
---|---|---|
committer | Minkyu Kang <mk7.kang@samsung.com> | 2013-07-10 14:20:26 +0900 |
commit | 1ae76d438b602fe8be1f0ef8b8ce47c89d371047 (patch) | |
tree | b4287314decd2d574f031f112d861efa70f880c7 /board/samsung | |
parent | e161f60f4df044e1815f4639795fce13f7b3bee3 (diff) | |
download | talos-obmc-uboot-1ae76d438b602fe8be1f0ef8b8ce47c89d371047.tar.gz talos-obmc-uboot-1ae76d438b602fe8be1f0ef8b8ce47c89d371047.zip |
EXYNOS: Resolve the i2c compilation error
This patch resolves the below mentioned compilation error of i2c driver
for non-FDT case
Compilation error:
s3c24x0_i2c.c: In function 'board_i2c_init':
s3c24x0_i2c.c:544:18: error: 'CONFIG_MAX_I2C_NUM' undeclared (first use
in this function) s3c24x0_i2c.c:544:18: note: each undeclared
identifier is reported only once for each function it appears in
s3c24x0_i2c.c:545:3: warning: implicit declaration of function
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Signed-off-by: Amar <amarendra.xt@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'board/samsung')
-rw-r--r-- | board/samsung/smdk5250/smdk5250.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/samsung/smdk5250/smdk5250.c b/board/samsung/smdk5250/smdk5250.c index ae1f077c4c..f1d3d97fd6 100644 --- a/board/samsung/smdk5250/smdk5250.c +++ b/board/samsung/smdk5250/smdk5250.c @@ -332,6 +332,16 @@ static int board_uart_init(void) return ret; } +void board_i2c_init(const void *blob) +{ + int i; + + for (i = 0; i < CONFIG_MAX_I2C_NUM; i++) { + exynos_pinmux_config((PERIPH_ID_I2C0 + i), + PINMUX_FLAG_NONE); + } +} + #ifdef CONFIG_BOARD_EARLY_INIT_F int board_early_init_f(void) { |