From d3decdebdef6207939aa1995d7327822a0267ad4 Mon Sep 17 00:00:00 2001 From: Steve Sakoman Date: Fri, 22 Jun 2012 07:45:57 +0000 Subject: omap: am335x_evm: enable i2c1 channel This patch sets up pinmux, enables fclk, and defines CONFIG_I2C_MULTI_BUS Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/am33xx/clock.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'arch') diff --git a/arch/arm/cpu/armv7/am33xx/clock.c b/arch/arm/cpu/armv7/am33xx/clock.c index ddce2138c6..16beb4ff3e 100644 --- a/arch/arm/cpu/armv7/am33xx/clock.c +++ b/arch/arm/cpu/armv7/am33xx/clock.c @@ -133,6 +133,11 @@ static void enable_per_clocks(void) writel(PRCM_MOD_EN, &cmper->gpio3clkctrl); while (readl(&cmper->gpio3clkctrl) != PRCM_MOD_EN) ; + + /* i2c1 */ + writel(PRCM_MOD_EN, &cmper->i2c1clkctrl); + while (readl(&cmper->i2c1clkctrl) != PRCM_MOD_EN) + ; } static void mpu_pll_config(void) -- cgit