summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/arm926ejs
diff options
context:
space:
mode:
authortrem <tremyfr@yahoo.fr>2013-06-14 18:21:22 +0200
committerStefano Babic <sbabic@denx.de>2013-06-26 17:34:21 +0200
commit79713f0ad8058faccd9ddca9c59a49cf0bd88e6e (patch)
treea21408df32af10063521ac36cbb32ee2cd0f5708 /arch/arm/cpu/arm926ejs
parent6247c4653b54931a44a0c2789063ac282bd77505 (diff)
downloadu-boot-imx-79713f0ad8058faccd9ddca9c59a49cf0bd88e6e.zip
u-boot-imx-79713f0ad8058faccd9ddca9c59a49cf0bd88e6e.tar.gz
u-boot-imx-79713f0ad8058faccd9ddca9c59a49cf0bd88e6e.tar.bz2
mx27: add i2c clock
Signed-off-by: Eric Jarrige <eric.jarrige@armadeus.org> Signed-off-by: Philippe Reynes <tremyfr@yahoo.fr>
Diffstat (limited to 'arch/arm/cpu/arm926ejs')
-rw-r--r--arch/arm/cpu/arm926ejs/mx27/generic.c2
1 files changed, 2 insertions, 0 deletions
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: