summaryrefslogtreecommitdiff
path: root/board/samsung/goni
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2014-10-06 14:33:11 +0200
committerSimon Glass <sjg@chromium.org>2014-10-22 10:33:49 -0600
commit4d38395c1585e54f23b9fd53f9694beb1931ba64 (patch)
treed1af826c886e2645f910329a3f3ca55972e4198a /board/samsung/goni
parentf887cb6d86012a79147cc67d512782644426dd9a (diff)
downloadu-boot-imx-4d38395c1585e54f23b9fd53f9694beb1931ba64.zip
u-boot-imx-4d38395c1585e54f23b9fd53f9694beb1931ba64.tar.gz
u-boot-imx-4d38395c1585e54f23b9fd53f9694beb1931ba64.tar.bz2
arm: goni: add i2c_init_board()
Add proper initialization of GPIO pins used by software i2c. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/samsung/goni')
-rw-r--r--board/samsung/goni/goni.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/board/samsung/goni/goni.c b/board/samsung/goni/goni.c
index eb0f9bf..5f76be3 100644
--- a/board/samsung/goni/goni.c
+++ b/board/samsung/goni/goni.c
@@ -33,6 +33,16 @@ int board_init(void)
return 0;
}
+#ifdef CONFIG_SYS_I2C_INIT_BOARD
+void i2c_init_board(void)
+{
+ gpio_request(S5PC110_GPIO_J43, "i2c_clk");
+ gpio_request(S5PC110_GPIO_J40, "i2c_data");
+ gpio_direction_output(S5PC110_GPIO_J43, 1);
+ gpio_direction_output(S5PC110_GPIO_J40, 1);
+}
+#endif
+
int power_init_board(void)
{
int ret;