Home
last modified time | relevance | path

Searched refs:dev_pdata (Results 1 – 5 of 5) sorted by relevance

/u-boot/drivers/power/regulator/
A Dregulator_common.c16 struct regulator_common_plat *dev_pdata, in regulator_common_of_to_plat() argument
29 gpio = &dev_pdata->gpio; in regulator_common_of_to_plat()
41 dev_pdata->off_on_delay_us = in regulator_common_of_to_plat()
43 if (!dev_pdata->off_on_delay_us) { in regulator_common_of_to_plat()
44 dev_pdata->off_on_delay_us = in regulator_common_of_to_plat()
52 struct regulator_common_plat *dev_pdata) in regulator_common_get_enable() argument
55 if (!dev_pdata->gpio.dev) in regulator_common_get_enable()
68 dm_gpio_is_valid(&dev_pdata->gpio)); in regulator_common_set_enable()
70 if (!dm_gpio_is_valid(&dev_pdata->gpio)) { in regulator_common_set_enable()
84 udelay(dev_pdata->startup_delay_us); in regulator_common_set_enable()
[all …]
A Dgpio-regulator.c31 struct gpio_regulator_plat *dev_pdata; in gpio_regulator_of_to_plat() local
36 dev_pdata = dev_get_plat(dev); in gpio_regulator_of_to_plat()
51 gpio = &dev_pdata->gpio; in gpio_regulator_of_to_plat()
86 if (!dev_pdata->gpio.dev) in gpio_regulator_get_value()
96 if (enable == dev_pdata->states[0]) in gpio_regulator_get_value()
97 return dev_pdata->voltages[0]; in gpio_regulator_get_value()
99 return dev_pdata->voltages[1]; in gpio_regulator_get_value()
108 if (!dev_pdata->gpio.dev) in gpio_regulator_set_value()
111 if (uV == dev_pdata->voltages[0]) in gpio_regulator_set_value()
112 enable = dev_pdata->states[0]; in gpio_regulator_set_value()
[all …]
A Dregulator_common.h19 struct regulator_common_plat *dev_pdata, const
22 struct regulator_common_plat *dev_pdata);
24 struct regulator_common_plat *dev_pdata, bool enable);
A Dfixed.c20 struct regulator_common_plat *dev_pdata; in fixed_regulator_of_to_plat() local
22 dev_pdata = dev_get_plat(dev); in fixed_regulator_of_to_plat()
29 return regulator_common_of_to_plat(dev, dev_pdata, "gpio"); in fixed_regulator_of_to_plat()
A Dfan53555.c105 struct fan53555_plat *dev_pdata = dev_get_plat(dev); in fan53555_regulator_of_to_plat() local
122 dev_pdata->sleep_reg = FAN53555_VSEL0; in fan53555_regulator_of_to_plat()
123 dev_pdata->vol_reg = FAN53555_VSEL1; in fan53555_regulator_of_to_plat()
126 dev_pdata->sleep_reg = FAN53555_VSEL1; in fan53555_regulator_of_to_plat()
127 dev_pdata->vol_reg = FAN53555_VSEL0; in fan53555_regulator_of_to_plat()

Completed in 8 milliseconds