diff options
author | Matthias Weisser <weisserm@arcor.de> | 2012-09-24 02:46:53 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-10-15 11:54:10 -0700 |
commit | e7bed5c2b30c894666e43b68a3d7b8e8f91da50d (patch) | |
tree | dc36ce7b9478d07559f1d19ba41fb5361901c8f9 /arch/arm/cpu/armv7 | |
parent | 8a57fdc6404fc9436ed68857963ba081c701ef37 (diff) | |
download | u-boot-imx-e7bed5c2b30c894666e43b68a3d7b8e8f91da50d.zip u-boot-imx-e7bed5c2b30c894666e43b68a3d7b8e8f91da50d.tar.gz u-boot-imx-e7bed5c2b30c894666e43b68a3d7b8e8f91da50d.tar.bz2 |
imx: Use MXC_I2C_CLK in imx i2c driver
i2c didn't work on imx25 due to missing MXC_IPG_PERCLK. Now using
MXC_I2C_CLK on all imx systems using i2c.
Signed-off-by: Matthias Weisser <weisserm@arcor.de>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm/cpu/armv7')
-rw-r--r-- | arch/arm/cpu/armv7/mx5/clock.c | 1 | ||||
-rw-r--r-- | arch/arm/cpu/armv7/mx6/clock.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx5/clock.c b/arch/arm/cpu/armv7/mx5/clock.c index c67c3cf..8fa737a 100644 --- a/arch/arm/cpu/armv7/mx5/clock.c +++ b/arch/arm/cpu/armv7/mx5/clock.c @@ -482,6 +482,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk) case MXC_IPG_CLK: return get_ipg_clk(); case MXC_IPG_PERCLK: + case MXC_I2C_CLK: return get_ipg_per_clk(); case MXC_UART_CLK: return get_uart_clk(); diff --git a/arch/arm/cpu/armv7/mx6/clock.c b/arch/arm/cpu/armv7/mx6/clock.c index ed2c913..76486e7 100644 --- a/arch/arm/cpu/armv7/mx6/clock.c +++ b/arch/arm/cpu/armv7/mx6/clock.c @@ -357,6 +357,7 @@ unsigned int mxc_get_clock(enum mxc_clock clk) case MXC_IPG_CLK: return get_ipg_clk(); case MXC_IPG_PERCLK: + case MXC_I2C_CLK: return get_ipg_per_clk(); case MXC_UART_CLK: return get_uart_clk(); |