diff options
author | Tero Kristo <t-kristo@ti.com> | 2014-04-04 12:31:51 +0300 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2015-03-25 11:03:37 +0200 |
commit | 9cb6d36371b0a9935de92bf250c7152f5b50fdc1 (patch) | |
tree | 0554046de7ecbb7b75ccdca3f05551b79382be85 /arch/arm/mach-omap2/prm_common.c | |
parent | f0caa5270bcf97c6a51c89d44747da00c0d67bb8 (diff) | |
download | lwn-9cb6d36371b0a9935de92bf250c7152f5b50fdc1.tar.gz lwn-9cb6d36371b0a9935de92bf250c7152f5b50fdc1.zip |
ARM: OMAP2+: PRM: add generic API for clear_mod_irqs
OMAP2/3 now use generic API for the prm_clear_mod_irqs, the SoC specific
implementation details are provided through prm_ll_data.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r-- | arch/arm/mach-omap2/prm_common.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c index c5cfaa98be9e..2c2e7ed1bc6c 100644 --- a/arch/arm/mach-omap2/prm_common.c +++ b/arch/arm/mach-omap2/prm_common.c @@ -534,6 +534,27 @@ void omap_prm_reset_system(void) } /** + * omap_prm_clear_mod_irqs - clear wake-up events from PRCM interrupt + * @module: PRM module to clear wakeups from + * @regs: register to clear + * @wkst_mask: wkst bits to clear + * + * Clears any wakeup events for the module and register set defined. + * Uses SoC specific implementation to do the actual wakeup status + * clearing. + */ +int omap_prm_clear_mod_irqs(s16 module, u8 regs, u32 wkst_mask) +{ + if (!prm_ll_data->clear_mod_irqs) { + WARN_ONCE(1, "prm: %s: no mapping function defined\n", + __func__); + return -EINVAL; + } + + return prm_ll_data->clear_mod_irqs(module, regs, wkst_mask); +} + +/** * prm_register - register per-SoC low-level data with the PRM * @pld: low-level per-SoC OMAP PRM data & function pointers to register * |