aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prm_common.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-04-04 05:31:51 -0400
committerTero Kristo <t-kristo@ti.com>2015-03-25 05:03:37 -0400
commit9cb6d36371b0a9935de92bf250c7152f5b50fdc1 (patch)
tree0554046de7ecbb7b75ccdca3f05551b79382be85 /arch/arm/mach-omap2/prm_common.c
parentf0caa5270bcf97c6a51c89d44747da00c0d67bb8 (diff)
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.c21
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)
534} 534}
535 535
536/** 536/**
537 * omap_prm_clear_mod_irqs - clear wake-up events from PRCM interrupt
538 * @module: PRM module to clear wakeups from
539 * @regs: register to clear
540 * @wkst_mask: wkst bits to clear
541 *
542 * Clears any wakeup events for the module and register set defined.
543 * Uses SoC specific implementation to do the actual wakeup status
544 * clearing.
545 */
546int omap_prm_clear_mod_irqs(s16 module, u8 regs, u32 wkst_mask)
547{
548 if (!prm_ll_data->clear_mod_irqs) {
549 WARN_ONCE(1, "prm: %s: no mapping function defined\n",
550 __func__);
551 return -EINVAL;
552 }
553
554 return prm_ll_data->clear_mod_irqs(module, regs, wkst_mask);
555}
556
557/**
537 * prm_register - register per-SoC low-level data with the PRM 558 * prm_register - register per-SoC low-level data with the PRM
538 * @pld: low-level per-SoC OMAP PRM data & function pointers to register 559 * @pld: low-level per-SoC OMAP PRM data & function pointers to register
539 * 560 *