Lines Matching +full:reset +full:- +full:source
1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2010-2012 Texas Instruments, Inc.
22 #include "prm-regbits-24xx.h"
25 * OMAP24xx PM_PWSTCTRL_*.POWERSTATE and PM_PWSTST_*.LASTSTATEENTERED bits -
33 * omap2xxx_prm_reset_src_map - map from bits in the PRM_RSTST_WKUP
35 * reset source ID bit shifts (which is an OMAP SoC-independent
45 { -1, -1 },
49 * omap2xxx_prm_read_reset_sources - return the last SoC reset source
51 * Return a u32 representing the last reset sources of the SoC. The
52 * returned reset source bits are standardized across OMAP SoCs.
63 while (p->reg_shift >= 0 && p->std_shift >= 0) { in omap2xxx_prm_read_reset_sources()
64 if (v & (1 << p->reg_shift)) in omap2xxx_prm_read_reset_sources()
65 r |= 1 << p->std_shift; in omap2xxx_prm_read_reset_sources()
73 * omap2xxx_pwrst_to_common_pwrst - convert OMAP2xxx pwrst to common pwrst
77 * hardware power state bits @omap2xxx_pwrst, or -EINVAL upon error.
94 return -EINVAL; in omap2xxx_pwrst_to_common_pwrst()
101 * omap2xxx_prm_dpll_reset - use DPLL reset to reboot the OMAP SoC
103 * Set the DPLL reset bit, which should reboot the SoC. This is the
115 * omap2xxx_prm_clear_mod_irqs - clear wakeup status bits for a module
121 * re-enter idle.
136 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_sleep()
144 clkdm->pwrdm.ptr->prcm_offs, in omap2xxx_clkdm_wakeup()
164 return -EINVAL; in omap2xxx_pwrdm_set_next_pwrst()
169 pwrdm->prcm_offs, OMAP2_PM_PWSTCTRL); in omap2xxx_pwrdm_set_next_pwrst()
177 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_next_pwrst()
188 omap2xxx_pwrst = omap2_prm_read_mod_bits_shift(pwrdm->prcm_offs, in omap2xxx_pwrdm_read_pwrst()