Lines Matching defs:mode
33 * Each regulator has a register for each power mode. To access a register
34 * for a specific regulator and mode BASE_* and OFFSET_* need to be added.
41 * a low-power state while the PMIC is in Active mode. They are supposed to be
45 * This driver keeps the PMIC in Active mode, Low-power state is set for the
46 * regulators by enabling/disabling operating mode (FPWM or Auto PFM).
49 * To enter standby/suspend the PMIC will go to Low-power mode. From there, it
78 static unsigned int mcp16502_of_map_mode(unsigned int mode)
80 if (mode == REGULATOR_MODE_NORMAL || mode == REGULATOR_MODE_IDLE)
81 return mode;
130 static void mcp16502_gpio_set_mode(struct mcp16502 *mcp, int mode)
132 switch (mode) {
141 pr_err("%s: %d invalid\n", __func__, mode);
149 * @opmode: the PMIC's operating mode ACTIVE, Low-power, Hibernate
168 * mcp16502_get_mode() - return the current operating mode of a regulator
171 * use the Active mode registers.
173 * Note: this is different from the PMIC's operatig mode, it is the
202 * @rdev: the regulator for which we are setting the mode
203 * @mode: the regulator's mode (the one from MODE bit)
204 * @opmode: the PMIC's operating mode: Active/Low-power/Hibernate
206 static int _mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode,
216 switch (mode) {
234 static int mcp16502_set_mode(struct regulator_dev *rdev, unsigned int mode)
236 return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_ACTIVE);
265 * mode
304 unsigned int mode)
308 return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_LPM);
311 return _mcp16502_set_mode(rdev, mode, MCP16502_OPMODE_HIB);