Home
last modified time | relevance | path

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

/external/u-boot/drivers/power/regulator/
Dgpio-regulator.c31 struct gpio_regulator_platdata *dev_pdata; in gpio_regulator_ofdata_to_platdata() local
38 dev_pdata = dev_get_platdata(dev); in gpio_regulator_ofdata_to_platdata()
53 gpio = &dev_pdata->gpio; in gpio_regulator_ofdata_to_platdata()
65 dev_pdata->voltages[j] = states_array[i]; in gpio_regulator_ofdata_to_platdata()
66 dev_pdata->states[j] = states_array[i + 1]; in gpio_regulator_ofdata_to_platdata()
70 return regulator_common_ofdata_to_platdata(dev, &dev_pdata->common, "enable-gpios"); in gpio_regulator_ofdata_to_platdata()
76 struct gpio_regulator_platdata *dev_pdata = dev_get_platdata(dev); in gpio_regulator_get_value() local
79 if (!dev_pdata->gpio.dev) in gpio_regulator_get_value()
88 enable = dm_gpio_get_value(&dev_pdata->gpio); in gpio_regulator_get_value()
89 if (enable == dev_pdata->states[0]) in gpio_regulator_get_value()
[all …]
Dregulator_common.c12 struct regulator_common_platdata *dev_pdata, const char *enable_gpio_name) in regulator_common_ofdata_to_platdata() argument
27 gpio = &dev_pdata->gpio; in regulator_common_ofdata_to_platdata()
37 dev_pdata->startup_delay_us = dev_read_u32_default(dev, in regulator_common_ofdata_to_platdata()
39 dev_pdata->off_on_delay_us = in regulator_common_ofdata_to_platdata()
46 struct regulator_common_platdata *dev_pdata) in regulator_common_get_enable() argument
49 if (!dev_pdata->gpio.dev) in regulator_common_get_enable()
52 return dm_gpio_get_value(&dev_pdata->gpio); in regulator_common_get_enable()
56 struct regulator_common_platdata *dev_pdata, bool enable) in regulator_common_set_enable() argument
61 dev->name, enable, dev_pdata->startup_delay_us, in regulator_common_set_enable()
62 dm_gpio_is_valid(&dev_pdata->gpio)); in regulator_common_set_enable()
[all …]
Dregulator_common.h21 struct regulator_common_platdata *dev_pdata, const char *enable_gpio_name);
23 struct regulator_common_platdata *dev_pdata);
25 struct regulator_common_platdata *dev_pdata, bool enable);
Dfan53555.c103 struct fan53555_platdata *dev_pdata = dev_get_platdata(dev); in fan53555_regulator_ofdata_to_platdata() local
120 dev_pdata->sleep_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()
121 dev_pdata->vol_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()
124 dev_pdata->sleep_reg = FAN53555_VSEL1; in fan53555_regulator_ofdata_to_platdata()
125 dev_pdata->vol_reg = FAN53555_VSEL0; in fan53555_regulator_ofdata_to_platdata()
Dfixed.c18 struct regulator_common_platdata *dev_pdata; in fixed_regulator_ofdata_to_platdata() local
20 dev_pdata = dev_get_platdata(dev); in fixed_regulator_ofdata_to_platdata()
27 return regulator_common_ofdata_to_platdata(dev, dev_pdata, "gpio"); in fixed_regulator_ofdata_to_platdata()