summaryrefslogtreecommitdiff
path: root/arch/arm/cpu
diff options
context:
space:
mode:
authorAlison Wang <b18965@freescale.com>2013-06-17 15:30:38 +0800
committerHeiko Schocher <hs@denx.de>2013-07-23 08:34:57 +0200
commit1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305 (patch)
tree2aec28f28577a803a7fa215176ef12577899cdf4 /arch/arm/cpu
parentcfb25cc40e6cb0f59f751bfb452bba8be8873ee7 (diff)
downloadu-boot-imx-1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305.zip
u-boot-imx-1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305.tar.gz
u-boot-imx-1221b3d74a0d92f3fcb5ff3e8b6f721f562b8305.tar.bz2
vf610: Add I2C support for Vybrid VF610 platform
This patch adds I2C support for Vybrid VF610 platform and adds I2C0 support to VF610TWR board. Signed-off-by: Alison Wang <b18965@freescale.com>
Diffstat (limited to 'arch/arm/cpu')
-rw-r--r--arch/arm/cpu/armv7/vf610/generic.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/vf610/generic.c b/arch/arm/cpu/armv7/vf610/generic.c
index 87f2a86..f6ef495 100644
--- a/arch/arm/cpu/armv7/vf610/generic.c
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -204,6 +204,11 @@ u32 get_fec_clk(void)
return freq;
}
+static u32 get_i2c_clk(void)
+{
+ return get_ipg_clk();
+}
+
unsigned int mxc_get_clock(enum mxc_clock clk)
{
switch (clk) {
@@ -219,6 +224,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
return get_sdhc_clk();
case MXC_FEC_CLK:
return get_fec_clk();
+ case MXC_I2C_CLK:
+ return get_i2c_clk();
default:
break;
}