提交 4d38395c 编写于 作者: R Robert Baldyga 提交者: Simon Glass

arm: goni: add i2c_init_board()

Add proper initialization of GPIO pins used by software i2c.
Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
Acked-by: NSimon Glass <sjg@chromium.org>
上级 f887cb6d
......@@ -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;
......
......@@ -276,6 +276,8 @@
#define CONFIG_SYS_I2C_SOFT_SPEED 50000
#define CONFIG_SYS_I2C_SOFT_SLAVE 0x7F
#define CONFIG_I2C_MULTI_BUS
#define CONFIG_SYS_I2C_INIT_BOARD
#define CONFIG_SYS_MAX_I2C_BUS 7
#define CONFIG_USB_GADGET
#define CONFIG_USB_GADGET_S3C_UDC_OTG
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册