Lines Matching +full:activity +full:- +full:signal +full:- +full:sources
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010-2012 Texas Instruments, Inc.
26 #include "prm-regbits-34xx.h"
28 #include "cm-regbits-34xx.h"
56 * omap3_prm_reset_src_map - map from bits in the PRM_RSTST hardware
58 * bit shifts (which is an OMAP SoC-independent enumeration)
73 { -1, -1 },
79 * struct omap3_vp - OMAP3 VP register access description.
104 return irqstatus & vp->tranxdone_status; in omap3_prm_vp_check_txdone()
111 omap2_prm_write_mod_reg(vp->tranxdone_status, in omap3_prm_vp_clear_txdone()
131 * omap3xxx_prm_dpll3_reset - use DPLL3 reset to reboot the OMAP SoC
146 * omap3xxx_prm_read_pending_irqs - read pending PRM MPU IRQs into @events
149 * Read PRM_IRQSTATUS_MPU bits, AND'ed with the currently-enabled PRM
165 * omap3xxx_prm_ocp_barrier - force buffered MPU writes to the PRM to complete
178 * omap3xxx_prm_save_and_clear_irqen - save/clear PRM_IRQENABLE_MPU reg
199 * omap3xxx_prm_restore_irqen - set PRM_IRQENABLE_MPU register from args
215 * omap3xxx_prm_clear_mod_irqs - clear wake-up events from PRCM interrupt
220 * The purpose of this function is to clear any wake-up events latched
221 * in the PRCM PM_WKST_x registers. It is possible that a wake-up event
224 * that any peripheral wake-up events occurring while attempting to
248 * HOST2 woke us up, so enable both f-clocks in omap3xxx_prm_clear_mod_irqs()
266 * omap3_prm_reset_modem - toggle reset signal for modem
268 * Toggles the reset signal to modem IP block. Required to allow
281 * omap3_prm_init_pm - initialize PM related registers for PRM
379 * omap3430_pre_es3_1_reconfigure_io_chain - restart wake-up daisy chain
394 * omap3_prm_reconfigure_io_chain - clear latches and reconfigure I/O chain
396 * Clear any previously-latched I/O wakeup events and ensure that the
425 * omap3xxx_prm_enable_io_wakeup - enable wakeup events from I/O wakeup latches
428 * those latches to signal a wakeup event to the PRCM. For I/O
441 * omap3xxx_prm_read_reset_sources - return the last SoC reset source
443 * Return a u32 representing the last reset sources of the SoC. The
455 while (p->reg_shift >= 0 && p->std_shift >= 0) { in omap3xxx_prm_read_reset_sources()
456 if (v & (1 << p->reg_shift)) in omap3xxx_prm_read_reset_sources()
457 r |= 1 << p->std_shift; in omap3xxx_prm_read_reset_sources()
465 * omap3xxx_prm_iva_idle - ensure IVA is in idle so it can be put into retention
468 * full-chip retention or off-mode because it is not idle. This
470 * into retention/off and thus allow full-chip retention/off.
477 /* if no clock activity, nothing else to do */ in omap3xxx_prm_iva_idle()
492 /* Un-reset IVA2 */ in omap3xxx_prm_iva_idle()
506 * omap3xxx_prm_clear_global_cold_reset - checks the global cold reset status
509 * Checks if cold-reset has occurred and clears the status bit if yes. Returns
510 * 1 if cold-reset has occurred, 0 otherwise.
534 /* Powerdomain low-level functions */
540 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap3_pwrdm_set_next_pwrst()
546 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_next_pwrst()
553 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_pwrst()
561 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_prev_pwrst()
568 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_logic_pwrst()
575 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_logic_retst()
582 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_prev_logic_pwrst()
600 return -EEXIST; in omap3_get_mem_bank_lastmemst_mask()
611 return omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap3_pwrdm_read_prev_mem_pwrst()
617 omap2_prm_write_mod_reg(0, pwrdm->prcm_offs, OMAP3430_PM_PREPWSTST); in omap3_pwrdm_clear_all_prev_pwrst()
625 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap3_pwrdm_enable_hdwr_sar()
631 0, pwrdm->prcm_offs, in omap3_pwrdm_disable_hdwr_sar()
684 { .compatible = "ti,omap3-prm" },
707 return -ENODEV; in omap3xxx_prm_late_init()
712 if (irq_num == -EPROBE_DEFER) in omap3xxx_prm_late_init()