• Home
  • Raw
  • Download

Lines Matching +full:mask +full:- +full:reset

21 #include "prcm-common.h"
26 #include "prm-regbits-44xx.h"
37 * omap_prm_base_init - Populates the prm partitions
78 /* Read-modify-write a register in PRM. Caller must lock */
79 u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, s16 inst, in omap4_prminst_rmw_inst_reg_bits() argument
85 v &= ~mask; in omap4_prminst_rmw_inst_reg_bits()
93 * omap4_prminst_is_hardreset_asserted - read the HW reset line state of
96 * @shift: register bit shift corresponding to the reset line to check
100 * -EINVAL upon parameter error.
115 * omap4_prminst_assert_hardreset - assert the HW reset line of a submodule
117 * @shift: register bit shift corresponding to the reset line to assert
120 * reset line to be asserted / deasserted in order to fully enable the
121 * IP. These modules may have multiple hard-reset lines that reset
123 * place the submodule into reset. Returns 0 upon success or -EINVAL
129 u32 mask = 1 << shift; in omap4_prminst_assert_hardreset() local
131 omap4_prminst_rmw_inst_reg_bits(mask, mask, part, inst, rstctrl_offs); in omap4_prminst_assert_hardreset()
137 * omap4_prminst_deassert_hardreset - deassert a submodule hardreset line and
139 * @shift: register bit shift corresponding to the reset line to deassert
140 * @st_shift: status bit offset corresponding to the reset line
143 * @rstctrl_offs: reset register offset
144 * @rstst_offs: reset status register offset
147 * reset line to be asserted / deasserted in order to fully enable the
148 * IP. These modules may have multiple hard-reset lines that reset
150 * take the submodule out of reset and wait until the PRCM indicates
151 * that the reset has completed before returning. Returns 0 upon success or
152 * -EINVAL upon an argument error, -EEXIST if the submodule was already out
153 * of reset, or -EBUSY if the submodule did not exit reset promptly.
159 u32 mask = 1 << shift; in omap4_prminst_deassert_hardreset() local
162 /* Check the current status to avoid de-asserting the line twice */ in omap4_prminst_deassert_hardreset()
165 return -EEXIST; in omap4_prminst_deassert_hardreset()
167 /* Clear the reset status by writing 1 to the status bit */ in omap4_prminst_deassert_hardreset()
170 /* de-assert the reset control line */ in omap4_prminst_deassert_hardreset()
171 omap4_prminst_rmw_inst_reg_bits(mask, 0, part, inst, rstctrl_offs); in omap4_prminst_deassert_hardreset()
177 return (c == MAX_MODULE_HARDRESET_WAIT) ? -EBUSY : 0; in omap4_prminst_deassert_hardreset()