Lines Matching refs:enable
185 static int stpmic1_buck_set_enable(struct udevice *dev, bool enable)
188 int delay = enable ? STPMIC1_DEFAULT_START_UP_DELAY_MS :
193 if (stpmic1_buck_get_enable(dev) == enable)
196 if (enable) {
205 STPMIC1_BUCK_ENA, enable ? STPMIC1_BUCK_ENA : 0);
364 static int stpmic1_ldo_set_enable(struct udevice *dev, bool enable)
367 int delay = enable ? STPMIC1_DEFAULT_START_UP_DELAY_MS :
372 if (stpmic1_ldo_get_enable(dev) == enable)
375 if (enable) {
384 STPMIC1_LDO_ENA, enable ? STPMIC1_LDO_ENA : 0);
495 static int stpmic1_vref_ddr_set_enable(struct udevice *dev, bool enable)
497 int delay = enable ? STPMIC1_DEFAULT_START_UP_DELAY_MS :
502 if (stpmic1_vref_ddr_get_enable(dev) == enable)
506 STPMIC1_VREF_ENA, enable ? STPMIC1_VREF_ENA : 0);
552 static int stpmic1_boost_set_enable(struct udevice *dev, bool enable)
560 if (!enable && ret & STPMIC1_PWR_SW_ON)
564 if (!!(ret & STPMIC1_BST_ON) == enable)
569 enable ? STPMIC1_BST_ON : 0);
570 if (enable)
616 static int stpmic1_pwr_sw_set_enable(struct udevice *dev, bool enable)
619 int delay = enable ? STPMIC1_DEFAULT_START_UP_DELAY_MS :
628 if (!!(ret & mask) == enable)
632 if (enable && !(ret & STPMIC1_BST_ON)) {
636 } else if (!enable && ret & STPMIC1_BST_ON &&
643 mask, enable ? mask : 0);