All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] ARM: sh-mobile: ag5evm i2c_shmobile support.
@ 2010-11-19 13:21 Takashi Yoshii
  0 siblings, 0 replies; only message in thread
From: Takashi Yoshii @ 2010-11-19 13:21 UTC (permalink / raw)
  To: linux-sh

Just add port multiplex settings to enable i2c modules.

Signed-off-by: Takashi YOSHII <takashi.yoshii.zj@renesas.com>
---
 arch/arm/mach-shmobile/board-ag5evm.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-shmobile/board-ag5evm.c b/arch/arm/mach-shmobile/board-ag5evm.c
index 4758690..02f64d9 100644
--- a/arch/arm/mach-shmobile/board-ag5evm.c
+++ b/arch/arm/mach-shmobile/board-ag5evm.c
@@ -193,6 +193,12 @@ static void __init ag5evm_init(void)
 	gpio_request(GPIO_FN_KEYOUT8, NULL);
 	gpio_request(GPIO_FN_PORT149_KEYOUT9, NULL);
 
+	/* enable IC2 2 and 3 */
+	gpio_request(GPIO_FN_PORT236_I2C_SDA2, NULL);
+	gpio_request(GPIO_FN_PORT237_I2C_SCL2, NULL);
+	gpio_request(GPIO_FN_PORT248_I2C_SCL3, NULL);
+	gpio_request(GPIO_FN_PORT249_I2C_SDA3, NULL);
+
 	/* enable SMSC911X */
 	gpio_request(GPIO_PORT144, NULL); /* PINTA2 */
 	gpio_direction_input(GPIO_PORT144);
-- 1.7.2.2 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-19 13:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-19 13:21 [PATCH 2/2] ARM: sh-mobile: ag5evm i2c_shmobile support Takashi Yoshii

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.