Skip to content

Commit 8e67b22

Browse files
Yoshii Takashipmundt
authored andcommitted
ARM: mach-shmobile: ag5evm i2c_shmobile support.
Just add port multiplex settings to enable i2c modules. Signed-off-by: Takashi YOSHII <takashi.yoshii.zj@renesas.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent b028f94 commit 8e67b22

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎arch/arm/mach-shmobile/board-ag5evm.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ static void __init ag5evm_init(void)
193193
gpio_request(GPIO_FN_KEYOUT8, NULL);
194194
gpio_request(GPIO_FN_PORT149_KEYOUT9, NULL);
195195

196+
/* enable IC2 2 and 3 */
197+
gpio_request(GPIO_FN_PORT236_I2C_SDA2, NULL);
198+
gpio_request(GPIO_FN_PORT237_I2C_SCL2, NULL);
199+
gpio_request(GPIO_FN_PORT248_I2C_SCL3, NULL);
200+
gpio_request(GPIO_FN_PORT249_I2C_SDA3, NULL);
201+
196202
/* enable SMSC911X */
197203
gpio_request(GPIO_PORT144, NULL); /* PINTA2 */
198204
gpio_direction_input(GPIO_PORT144);

0 commit comments

Comments
 (0)