diff options
author | Benoit Cousson <b-cousson@ti.com> | 2011-07-10 13:56:32 +0200 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2011-07-10 13:56:32 +0200 |
commit | 288d6a161819ee99b3a6e2972c5b0d9ede22c553 (patch) | |
tree | 2881ac3216938dd8cf493da12405bf392ca7b956 /arch/arm/mach-omap2/cminst44xx.h | |
parent | OMAP4: hwmod data: Add modulemode entry in omap_hwmod structure (diff) | |
download | linux-288d6a161819ee99b3a6e2972c5b0d9ede22c553.tar.xz linux-288d6a161819ee99b3a6e2972c5b0d9ede22c553.zip |
OMAP4: cm: Add two new APIs for modulemode control
In OMAP4, a new programming model based on module control instead
of clock control was introduced.
Expose two APIs to allow the upper layer (omap_hwmod) to control
the module mode independently of the parent clocks management.
Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Rajendra Nayak <rnayak@ti.com>
[paul@pwsan.com: renamed 'omap4_cm_' fns to 'omap4_cminst_'; cleaned up
kerneldoc]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/cminst44xx.h')
-rw-r--r-- | arch/arm/mach-omap2/cminst44xx.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/cminst44xx.h b/arch/arm/mach-omap2/cminst44xx.h index a98540081f97..f2ea6453ade0 100644 --- a/arch/arm/mach-omap2/cminst44xx.h +++ b/arch/arm/mach-omap2/cminst44xx.h @@ -20,6 +20,11 @@ extern void omap4_cminst_clkdm_force_wakeup(u8 part, s16 inst, u16 cdoffs); extern int omap4_cminst_wait_module_ready(u8 part, u16 inst, s16 cdoffs, u16 clkctrl_offs); extern int omap4_cminst_wait_module_idle(u8 part, u16 inst, s16 cdoffs, u16 clkctrl_offs); +extern void omap4_cminst_module_enable(u8 mode, u8 part, u16 inst, s16 cdoffs, + u16 clkctrl_offs); +extern void omap4_cminst_module_disable(u8 part, u16 inst, s16 cdoffs, + u16 clkctrl_offs); + /* * In an ideal world, we would not export these low-level functions, * but this will probably take some time to fix properly |