Lines Matching refs:enable_pin
31 rt_base_t enable_pin; member
59 if (rg->enable_pin >= 0) in regulator_gpio_enable()
61 rt_pin_mode(rg->enable_pin, PIN_MODE_OUTPUT); in regulator_gpio_enable()
62 rt_pin_write(rg->enable_pin, param->enable_active_high ? PIN_HIGH : PIN_LOW); in regulator_gpio_enable()
78 if (rg->enable_pin >= 0) in regulator_gpio_disable()
80 rt_pin_mode(rg->enable_pin, PIN_MODE_OUTPUT); in regulator_gpio_disable()
81 rt_pin_write(rg->enable_pin, param->enable_active_high ? PIN_LOW : PIN_HIGH); in regulator_gpio_disable()
97 if (rg->enable_pin >= 0) in regulator_gpio_is_enabled()
101 rt_pin_mode(rg->enable_pin, PIN_MODE_INPUT); in regulator_gpio_is_enabled()
102 return rt_pin_read(rg->enable_pin) == active_val; in regulator_gpio_is_enabled()
194 rg->enable_pin = rt_pin_get_named_pin(dev, "enable", 0, RT_NULL, RT_NULL); in regulator_gpio_probe()
196 if (rg->enable_pin < 0 && rg->enable_pin != PIN_NONE) in regulator_gpio_probe()
198 err = rg->enable_pin; in regulator_gpio_probe()