diff options
author | guenter.gebhardt@rafi.de <guenter.gebhardt@rafi.de> | 2012-03-21 14:29:18 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-03-22 07:15:03 +0100 |
commit | 109629c1dde1385f8703609af6f1fba81626c6cd (patch) | |
tree | bb2bee69244bf533bb85f58af6aa6d6588334720 /arch | |
parent | d8ce4acc9f48a2960ac60b5162e5d3a6fe4d9ceb (diff) | |
download | barebox-109629c1dde1385f8703609af6f1fba81626c6cd.tar.gz barebox-109629c1dde1385f8703609af6f1fba81626c6cd.tar.xz |
ARM i.MX53:: Add i2cclk
when compiling for a imx53 with i2c enabled i got the following error:
drivers/built-in.o: In function `i2c_imx_set_clk':
/home/ggebhardt/repos/ecuv6_bl/barebox/drivers/i2c/busses/i2c-imx.c:282:
undefined reference to `imx_get_i2cclk'
make[4]: *** [.tmp_barebox1] Error 1
make[3]: *** [CMakeFiles/bootloader] Error 2
make[2]: *** [CMakeFiles/bootloader.dir/all] Error 2
make[1]: *** [CMakeFiles/bootloader.dir/rule] Error 2
make: *** [bootloader] Error 2
I copied the following from the corresponding imx51 implementation.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-imx/speed-imx53.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/speed-imx53.c b/arch/arm/mach-imx/speed-imx53.c index a2385fae22..ca536d714b 100644 --- a/arch/arm/mach-imx/speed-imx53.c +++ b/arch/arm/mach-imx/speed-imx53.c @@ -194,6 +194,11 @@ unsigned long imx_get_i2cclk(void) return imx_get_ipg_perclk(); } +unsigned long imx_get_i2cclk(void) +{ + return imx_get_ipgclk(); +} + unsigned long imx_get_mmcclk(void) { u32 reg, prediv, podf, rate; |