aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx25
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2010-06-10 05:14:32 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2010-07-26 08:18:18 -0400
commitac0eb0f3ca3e3fff6ac083ee3a51b98f87d67843 (patch)
treec84fb2892d3b543892d1da2eac2b2d7d3030ecf9 /arch/arm/mach-mx25
parentfd3c46b3062ac1ce0aa532c81922f9a0e28a6454 (diff)
mx25: add a comment documenting undocumented IPG clocks
The information in the i.MX25 Reference Manual is lacking. Add information from the Freescale BSP. Signed-off-by: Baruch Siach <baruch@tkos.co.il> Acked-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25')
-rw-r--r--arch/arm/mach-mx25/clock.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c
index 74cf27d48bfb..2bb4f1d73cbb 100644
--- a/arch/arm/mach-mx25/clock.c
+++ b/arch/arm/mach-mx25/clock.c
@@ -179,6 +179,28 @@ static void clk_cgcr_disable(struct clk *clk)
179 .secondary = s, \ 179 .secondary = s, \
180 } 180 }
181 181
182/*
183 * Note: the following IPG clock gating bits are wrongly marked "Reserved" in
184 * the i.MX25 Reference Manual Rev 1, table 15-13. The information below is
185 * taken from the Freescale released BSP.
186 *
187 * bit reg offset clock
188 *
189 * 0 CGCR1 0 AUDMUX
190 * 12 CGCR1 12 ESAI
191 * 16 CGCR1 16 GPIO1
192 * 17 CGCR1 17 GPIO2
193 * 18 CGCR1 18 GPIO3
194 * 23 CGCR1 23 I2C1
195 * 24 CGCR1 24 I2C2
196 * 25 CGCR1 25 I2C3
197 * 27 CGCR1 27 IOMUXC
198 * 28 CGCR1 28 KPP
199 * 30 CGCR1 30 OWIRE
200 * 36 CGCR2 4 RTIC
201 * 51 CGCR2 19 WDOG
202 */
203
182DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_gpt, NULL, NULL); 204DEFINE_CLOCK(gpt_clk, 0, CCM_CGCR0, 5, get_rate_gpt, NULL, NULL);
183DEFINE_CLOCK(uart_per_clk, 0, CCM_CGCR0, 15, get_rate_uart, NULL, NULL); 205DEFINE_CLOCK(uart_per_clk, 0, CCM_CGCR0, 15, get_rate_uart, NULL, NULL);
184DEFINE_CLOCK(ssi1_per_clk, 0, CCM_CGCR0, 13, get_rate_ipg, NULL, NULL); 206DEFINE_CLOCK(ssi1_per_clk, 0, CCM_CGCR0, 13, get_rate_ipg, NULL, NULL);