[PATCH 07/11] speed-imx35: add function imx_get_i2cclk

Marc Kleine-Budde mkl at pengutronix.de
Mon Nov 23 07:06:19 EST 2009


Because i2c is connected to ipg_perclk om MX35 it's calls
imx_get_ipg_perclk().

Signed-off-by: Marc Kleine-Budde <mkl at pengutronix.de>
---
 arch/arm/mach-imx/include/mach/clock.h |    1 +
 arch/arm/mach-imx/speed-imx35.c        |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-imx/include/mach/clock.h b/arch/arm/mach-imx/include/mach/clock.h
index c604179..76ab4a5 100644
--- a/arch/arm/mach-imx/include/mach/clock.h
+++ b/arch/arm/mach-imx/include/mach/clock.h
@@ -27,6 +27,7 @@ ulong imx_get_fecclk(void);
 ulong imx_get_gptclk(void);
 ulong imx_get_uartclk(void);
 ulong imx_get_lcdclk(void);
+ulong imx_get_i2cclk(void);
 
 int imx_clko_set_div(int div);
 void imx_clko_set_src(int src);
diff --git a/arch/arm/mach-imx/speed-imx35.c b/arch/arm/mach-imx/speed-imx35.c
index 655b38b..4c8420a 100644
--- a/arch/arm/mach-imx/speed-imx35.c
+++ b/arch/arm/mach-imx/speed-imx35.c
@@ -129,11 +129,17 @@ unsigned long imx_get_uartclk(void)
 	else
 		return imx_get_ppllclk() / div;
 }
+
 ulong imx_get_fecclk(void)
 {
 	return imx_get_ipgclk();
 }
 
+ulong imx_get_i2cclk(void)
+{
+	return imx_get_ipg_perclk();
+}
+
 void imx_dump_clocks(void)
 {
 	printf("mpll:    %10d Hz\n", imx_get_mpllclk());
-- 
1.6.5.2





More information about the barebox mailing list