summaryrefslogtreecommitdiff
path: root/arch/arm/mach-davinci/clock.h
diff options
context:
space:
mode:
authorPhilip Avinash <avinashphilip@ti.com>2013-03-25 13:37:48 +0400
committerSekhar Nori <nsekhar@ti.com>2013-04-01 15:24:47 +0400
commitc6007ffe842892484027a40b6ac18d29ac11e2ce (patch)
treed24db9aab259a37ae6de4203a420e77bffe45bdf /arch/arm/mach-davinci/clock.h
parent07961ac7c0ee8b546658717034fe692fd12eefa9 (diff)
downloadlinux-c6007ffe842892484027a40b6ac18d29ac11e2ce.tar.xz
ARM: davinci: clk framework support for enable/disable functionality
DaVinci clock implementation does not support clock enable/disable functionality on non-PSC clock nodes. On DA850 SoC, EHRPWM module requires support for enable/disable of TBCLK controlled using a system module register. This patch adds a method for enabling/disabling non-PSC clocks into DaVinci clock implementation. Signed-off-by: Philip Avinash <avinashphilip@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/clock.h')
-rw-r--r--arch/arm/mach-davinci/clock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/clock.h b/arch/arm/mach-davinci/clock.h
index 8694b395fc92..1e4e836173a1 100644
--- a/arch/arm/mach-davinci/clock.h
+++ b/arch/arm/mach-davinci/clock.h
@@ -104,6 +104,8 @@ struct clk {
int (*set_rate) (struct clk *clk, unsigned long rate);
int (*round_rate) (struct clk *clk, unsigned long rate);
int (*reset) (struct clk *clk, bool reset);
+ void (*clk_enable) (struct clk *clk);
+ void (*clk_disable) (struct clk *clk);
};
/* Clock flags: SoC-specific flags start at BIT(16) */