diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-07-22 11:33:36 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-07-26 09:05:24 -0400 |
commit | e993ade18fcc5f81b26ec031c166880789a9723b (patch) | |
tree | 766debff317105409a1b6b29e2b9a2b66fd6fcc4 /arch/arm/mach-mx25/clock.c | |
parent | 6937aabef4dd0ee88fe0e4732f0eb8de612ecbb4 (diff) |
mx25: flexcan clock support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx25/clock.c')
-rw-r--r-- | arch/arm/mach-mx25/clock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c index 02f82478075f..40c7cc41cee3 100644 --- a/arch/arm/mach-mx25/clock.c +++ b/arch/arm/mach-mx25/clock.c | |||
@@ -240,6 +240,8 @@ DEFINE_CLOCK(ssi1_clk, 0, CCM_CGCR2, 11, get_rate_ssi1, NULL, &ssi1_per_clk); | |||
240 | DEFINE_CLOCK(ssi2_clk, 1, CCM_CGCR2, 12, get_rate_ssi2, NULL, &ssi2_per_clk); | 240 | DEFINE_CLOCK(ssi2_clk, 1, CCM_CGCR2, 12, get_rate_ssi2, NULL, &ssi2_per_clk); |
241 | DEFINE_CLOCK(audmux_clk, 0, CCM_CGCR1, 0, NULL, NULL, NULL); | 241 | DEFINE_CLOCK(audmux_clk, 0, CCM_CGCR1, 0, NULL, NULL, NULL); |
242 | DEFINE_CLOCK(csi_clk, 0, CCM_CGCR1, 4, get_rate_csi, NULL, &csi_per_clk); | 242 | DEFINE_CLOCK(csi_clk, 0, CCM_CGCR1, 4, get_rate_csi, NULL, &csi_per_clk); |
243 | DEFINE_CLOCK(can1_clk, 0, CCM_CGCR1, 2, get_rate_ipg, NULL, NULL); | ||
244 | DEFINE_CLOCK(can2_clk, 0, CCM_CGCR1, 3, get_rate_ipg, NULL, NULL); | ||
243 | 245 | ||
244 | #define _REGISTER_CLOCK(d, n, c) \ | 246 | #define _REGISTER_CLOCK(d, n, c) \ |
245 | { \ | 247 | { \ |
@@ -279,6 +281,8 @@ static struct clk_lookup lookups[] = { | |||
279 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) | 281 | _REGISTER_CLOCK("imx-ssi.1", NULL, ssi2_clk) |
280 | _REGISTER_CLOCK("mx2-camera.0", NULL, csi_clk) | 282 | _REGISTER_CLOCK("mx2-camera.0", NULL, csi_clk) |
281 | _REGISTER_CLOCK(NULL, "audmux", audmux_clk) | 283 | _REGISTER_CLOCK(NULL, "audmux", audmux_clk) |
284 | _REGISTER_CLOCK("flexcan.0", NULL, can1_clk) | ||
285 | _REGISTER_CLOCK("flexcan.1", NULL, can2_clk) | ||
282 | }; | 286 | }; |
283 | 287 | ||
284 | int __init mx25_clocks_init(void) | 288 | int __init mx25_clocks_init(void) |