aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/prm_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/prm_common.c')
-rw-r--r--arch/arm/mach-omap2/prm_common.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/prm_common.c b/arch/arm/mach-omap2/prm_common.c
index 2c2e7ed1bc6c..79cee117f971 100644
--- a/arch/arm/mach-omap2/prm_common.c
+++ b/arch/arm/mach-omap2/prm_common.c
@@ -555,6 +555,40 @@ int omap_prm_clear_mod_irqs(s16 module, u8 regs, u32 wkst_mask)
555} 555}
556 556
557/** 557/**
558 * omap_prm_vp_check_txdone - check voltage processor TX done status
559 *
560 * Checks if voltage processor transmission has been completed.
561 * Returns non-zero if a transmission has completed, 0 otherwise.
562 */
563u32 omap_prm_vp_check_txdone(u8 vp_id)
564{
565 if (!prm_ll_data->vp_check_txdone) {
566 WARN_ONCE(1, "prm: %s: no mapping function defined\n",
567 __func__);
568 return 0;
569 }
570
571 return prm_ll_data->vp_check_txdone(vp_id);
572}
573
574/**
575 * omap_prm_vp_clear_txdone - clears voltage processor TX done status
576 *
577 * Clears the status bit for completed voltage processor transmission
578 * returned by prm_vp_check_txdone.
579 */
580void omap_prm_vp_clear_txdone(u8 vp_id)
581{
582 if (!prm_ll_data->vp_clear_txdone) {
583 WARN_ONCE(1, "prm: %s: no mapping function defined\n",
584 __func__);
585 return;
586 }
587
588 prm_ll_data->vp_clear_txdone(vp_id);
589}
590
591/**
558 * prm_register - register per-SoC low-level data with the PRM 592 * prm_register - register per-SoC low-level data with the PRM
559 * @pld: low-level per-SoC OMAP PRM data & function pointers to register 593 * @pld: low-level per-SoC OMAP PRM data & function pointers to register
560 * 594 *