From: trem Date: Fri, 14 Jun 2013 16:21:22 +0000 (+0200) Subject: mx27: add i2c clock X-Git-Tag: v2013.07-rc3~4^2^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79713f0ad8058faccd9ddca9c59a49cf0bd88e6e;p=kernel%2Fu-boot.git mx27: add i2c clock Signed-off-by: Eric Jarrige Signed-off-by: Philippe Reynes --- diff --git a/arch/arm/cpu/arm926ejs/mx27/generic.c b/arch/arm/cpu/arm926ejs/mx27/generic.c index bffbadd..a9a13cb 100644 --- a/arch/arm/cpu/arm926ejs/mx27/generic.c +++ b/arch/arm/cpu/arm926ejs/mx27/generic.c @@ -159,6 +159,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk) switch (clk) { case MXC_ARM_CLK: return imx_get_armclk(); + case MXC_I2C_CLK: + return imx_get_ahbclk()/2; case MXC_UART_CLK: return imx_get_perclk1(); case MXC_FEC_CLK: diff --git a/arch/arm/include/asm/arch-mx27/clock.h b/arch/arm/include/asm/arch-mx27/clock.h index fd062d3..2b03a41 100644 --- a/arch/arm/include/asm/arch-mx27/clock.h +++ b/arch/arm/include/asm/arch-mx27/clock.h @@ -26,6 +26,7 @@ enum mxc_clock { MXC_ARM_CLK, + MXC_I2C_CLK, MXC_UART_CLK, MXC_ESDHC_CLK, MXC_FEC_CLK,