diff options
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) | |||
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 | */ | ||
546 | int 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 | * |