Lines Matching +full:module +full:- +full:instance

1 // SPDX-License-Identifier: GPL-2.0-only
3 * OMAP4 PRM instance functions
18 #include "prcm-common.h"
23 #include "prm-regbits-44xx.h"
34 * omap_prm_base_init - Populates the prm partitions
37 * array used for read/write of prm module registers.
57 /* Read a register in a PRM instance */
66 /* Write into a register in a PRM instance */
75 /* Read-modify-write a register in PRM. Caller must lock */
90 * omap4_prminst_is_hardreset_asserted - read the HW reset line state of
91 * submodules contained in the hwmod module
92 * @rstctrl_reg: RM_RSTCTRL register address for this module
95 * Returns 1 if the (sub)module hardreset line is currently asserted,
96 * 0 if the (sub)module hardreset line is not currently asserted, or
97 * -EINVAL upon parameter error.
112 * omap4_prminst_assert_hardreset - assert the HW reset line of a submodule
113 * @rstctrl_reg: RM_RSTCTRL register address for this module
118 * IP. These modules may have multiple hard-reset lines that reset
120 * place the submodule into reset. Returns 0 upon success or -EINVAL
134 * omap4_prminst_deassert_hardreset - deassert a submodule hardreset line and
139 * @inst: PRM instance offset
145 * IP. These modules may have multiple hard-reset lines that reset
149 * -EINVAL upon an argument error, -EEXIST if the submodule was already out
150 * of reset, or -EBUSY if the submodule did not exit reset promptly.
159 /* Check the current status to avoid de-asserting the line twice */ in omap4_prminst_deassert_hardreset()
162 return -EEXIST; in omap4_prminst_deassert_hardreset()
167 /* de-assert the reset control line */ in omap4_prminst_deassert_hardreset()
174 return (c == MAX_MODULE_HARDRESET_WAIT) ? -EBUSY : 0; in omap4_prminst_deassert_hardreset()