diff options
author | Vignesh R <vigneshr@ti.com> | 2015-08-17 13:29:53 +0530 |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-08-17 23:29:14 +0530 |
commit | 5b3b0d687ef927fff56d6c2af1f2a1134e6ee31c (patch) | |
tree | 124782afd46704403e2dee8228161c49c518b378 /arch | |
parent | 8a09cfe14bb05364c4a61256e25479a96301e423 (diff) | |
download | u-boot-imx-5b3b0d687ef927fff56d6c2af1f2a1134e6ee31c.zip u-boot-imx-5b3b0d687ef927fff56d6c2af1f2a1134e6ee31c.tar.gz u-boot-imx-5b3b0d687ef927fff56d6c2af1f2a1134e6ee31c.tar.bz2 |
ARM: AM43XX: Add functions to enable and disable EDMA3 clocks
Adds functions to enable and disable edma3 clocks which can be invoked
by drivers using edma3 to control the clocks.
Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/cpu/armv7/am33xx/clock_am43xx.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c index b639694..35c431e 100644 --- a/arch/arm/cpu/armv7/am33xx/clock_am43xx.c +++ b/arch/arm/cpu/armv7/am33xx/clock_am43xx.c @@ -135,3 +135,39 @@ void enable_basic_clocks(void) /* For OPP100 the mac clock should be /5. */ writel(0x4, &cmdpll->clkselmacclk); } + +#ifdef CONFIG_TI_EDMA3 +void enable_edma3_clocks(void) +{ + u32 *const clk_domains_edma3[] = { + 0 + }; + + u32 *const clk_modules_explicit_en_edma3[] = { + &cmper->tpccclkctrl, + &cmper->tptc0clkctrl, + 0 + }; + + do_enable_clocks(clk_domains_edma3, + clk_modules_explicit_en_edma3, + 1); +} + +void disable_edma3_clocks(void) +{ + u32 *const clk_domains_edma3[] = { + 0 + }; + + u32 *const clk_modules_disable_edma3[] = { + &cmper->tpccclkctrl, + &cmper->tptc0clkctrl, + 0 + }; + + do_disable_clocks(clk_domains_edma3, + clk_modules_disable_edma3, + 1); +} +#endif |