From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx2.rafi.de ([80.150.88.70]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SALbO-0000ka-RR for barebox@lists.infradead.org; Wed, 21 Mar 2012 13:29:24 +0000 MIME-Version: 1.0 Message-ID: From: guenter.gebhardt@rafi.de Date: Wed, 21 Mar 2012 14:29:18 +0100 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3934150251194371661==" Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: barebox-2012.03.0 imx_get_i2cclk To: barebox@lists.infradead.org Dies ist eine mehrteilige Nachricht im MIME-Format. --===============3934150251194371661== Content-Type: multipart/alternative; boundary="=_alternative 004A1884C12579C8_=" Dies ist eine mehrteilige Nachricht im MIME-Format. --=_alternative 004A1884C12579C8_= Content-Type: text/plain; charset="US-ASCII" Hello, 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: diff --git a/barebox/arch/arm/mach-imx/speed-imx53.c b/barebox/arch/arm/mach-imx/speed-imx53.c index 0d6ac24..a168c65 100644 --- a/barebox/arch/arm/mach-imx/speed-imx53.c +++ b/barebox/arch/arm/mach-imx/speed-imx53.c @@ -169,6 +169,11 @@ unsigned long imx_get_fecclk(void) return imx_get_ipgclk(); } +unsigned long imx_get_i2cclk(void) +{ + return imx_get_ipgclk(); +} + unsigned long imx_get_mmcclk(void) { u32 reg, prediv, podf, rate; --=_alternative 004A1884C12579C8_= Content-Type: text/html; charset="US-ASCII" Hello,

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:

diff --git a/barebox/arch/arm/mach-imx/speed-imx53.c b/barebox/arch/arm/mach-imx/speed-imx53.c
index 0d6ac24..a168c65 100644
--- a/barebox/arch/arm/mach-imx/speed-imx53.c
+++ b/barebox/arch/arm/mach-imx/speed-imx53.c
@@ -169,6 +169,11 @@ unsigned long imx_get_fecclk(void)
        return imx_get_ipgclk();
 }
 
+unsigned long imx_get_i2cclk(void)
+{
+       return imx_get_ipgclk();
+}
+
 unsigned long imx_get_mmcclk(void)
 {
        u32 reg, prediv, podf, rate; --=_alternative 004A1884C12579C8_=-- --===============3934150251194371661== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --===============3934150251194371661==--