Home
last modified time | relevance | path

Searched refs:ldo (Results 1 – 11 of 11) sorted by relevance

/drivers/regulator/
Dwm831x-ldo.c52 struct wm831x_ldo *ldo = data; in wm831x_ldo_uv_irq() local
54 regulator_notifier_call_chain(ldo->regulator, in wm831x_ldo_uv_irq()
73 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_set_suspend_voltage() local
74 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_set_suspend_voltage()
75 int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL; in wm831x_gp_ldo_set_suspend_voltage()
86 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_get_mode() local
87 struct wm831x *wm831x = ldo->wm831x; in wm831x_gp_ldo_get_mode()
88 int ctrl_reg = ldo->base + WM831X_LDO_CONTROL; in wm831x_gp_ldo_get_mode()
89 int on_reg = ldo->base + WM831X_LDO_ON_CONTROL; in wm831x_gp_ldo_get_mode()
112 struct wm831x_ldo *ldo = rdev_get_drvdata(rdev); in wm831x_gp_ldo_set_mode() local
[all …]
Dwm8994-regulator.c49 struct wm8994_ldo *ldo = rdev_get_drvdata(rdev); in wm8994_ldo2_list_voltage() local
54 switch (ldo->wm8994->type) { in wm8994_ldo2_list_voltage()
129 int id = pdev->id % ARRAY_SIZE(pdata->ldo); in wm8994_ldo_probe()
131 struct wm8994_ldo *ldo; in wm8994_ldo_probe() local
136 ldo = devm_kzalloc(&pdev->dev, sizeof(struct wm8994_ldo), GFP_KERNEL); in wm8994_ldo_probe()
137 if (!ldo) in wm8994_ldo_probe()
140 ldo->wm8994 = wm8994; in wm8994_ldo_probe()
141 ldo->supply = wm8994_ldo_consumer[id]; in wm8994_ldo_probe()
142 ldo->supply.dev_name = dev_name(wm8994->dev); in wm8994_ldo_probe()
145 config.driver_data = ldo; in wm8994_ldo_probe()
[all …]
Dlp8788-ldo.c161 struct lp8788_ldo *ldo = rdev_get_drvdata(rdev); in lp8788_ldo_enable_time() local
165 if (lp8788_read_byte(ldo->lp, addr, &val)) in lp8788_ldo_enable_time()
468 struct lp8788_ldo *ldo, in lp8788_config_ldo_enable_mode() argument
471 struct lp8788 *lp = ldo->lp; in lp8788_config_ldo_enable_mode()
511 ldo->en_pin = pdata->ldo_pin[enable_id]; in lp8788_config_ldo_enable_mode()
522 struct lp8788_ldo *ldo; in lp8788_dldo_probe() local
527 ldo = devm_kzalloc(&pdev->dev, sizeof(struct lp8788_ldo), GFP_KERNEL); in lp8788_dldo_probe()
528 if (!ldo) in lp8788_dldo_probe()
531 ldo->lp = lp; in lp8788_dldo_probe()
532 ret = lp8788_config_ldo_enable_mode(pdev, ldo, id); in lp8788_dldo_probe()
[all …]
Dlp3972.c228 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_is_enabled() local
229 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_is_enabled()
232 val = lp3972_reg_read(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo)); in lp3972_ldo_is_enabled()
239 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_enable() local
240 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_enable()
242 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_enable()
249 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_disable() local
250 u16 mask = LP3972_LDO_OUTPUT_ENABLE_MASK(ldo); in lp3972_ldo_disable()
252 return lp3972_set_bits(lp3972, LP3972_LDO_OUTPUT_ENABLE_REG(ldo), in lp3972_ldo_disable()
259 int ldo = rdev_get_id(dev) - LP3972_LDO1; in lp3972_ldo_get_voltage_sel() local
[all …]
Dlp3971.c113 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_is_enabled() local
114 u16 mask = 1 << (1 + ldo); in lp3971_ldo_is_enabled()
124 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_enable() local
125 u16 mask = 1 << (1 + ldo); in lp3971_ldo_enable()
133 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_disable() local
134 u16 mask = 1 << (1 + ldo); in lp3971_ldo_disable()
142 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_get_voltage_sel() local
145 reg = lp3971_reg_read(lp3971, LP3971_LDO_VOL_CONTR_REG(ldo)); in lp3971_ldo_get_voltage_sel()
146 val = (reg >> LDO_VOL_CONTR_SHIFT(ldo)) & LDO_VOL_CONTR_MASK; in lp3971_ldo_get_voltage_sel()
155 int ldo = rdev_get_id(dev) - LP3971_LDO1; in lp3971_ldo_set_voltage_sel() local
[all …]
Dmax8998.c119 int ldo = rdev_get_id(rdev); in max8998_get_enable_register() local
121 switch (ldo) { in max8998_get_enable_register()
124 *shift = 3 - (ldo - MAX8998_LDO2); in max8998_get_enable_register()
128 *shift = 7 - (ldo - MAX8998_LDO6); in max8998_get_enable_register()
132 *shift = 7 - (ldo - MAX8998_LDO14); in max8998_get_enable_register()
136 *shift = 7 - (ldo - MAX8998_BUCK1); in max8998_get_enable_register()
140 *shift = 7 - (ldo - MAX8998_EN32KHZ_AP); in max8998_get_enable_register()
144 *shift = 7 - (ldo - MAX8998_ESAFEOUT1); in max8998_get_enable_register()
200 int ldo = rdev_get_id(rdev); in max8998_get_voltage_register() local
204 switch (ldo) { in max8998_get_voltage_register()
[all …]
Darizona-ldo1.c66 struct arizona_ldo1 *ldo = rdev_get_drvdata(rdev); in arizona_ldo1_hc_set_voltage_sel() local
67 struct regmap *regmap = ldo->arizona->regmap; in arizona_ldo1_hc_set_voltage_sel()
97 struct arizona_ldo1 *ldo = rdev_get_drvdata(rdev); in arizona_ldo1_hc_get_voltage_sel() local
98 struct regmap *regmap = ldo->arizona->regmap; in arizona_ldo1_hc_get_voltage_sel()
Dwm8350-regulator.c553 int sel, volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_voltage() local
556 dev_dbg(wm8350->dev, "%s %d mV %d\n", __func__, ldo, uV / 1000); in wm8350_ldo_set_suspend_voltage()
558 switch (ldo) { in wm8350_ldo_set_suspend_voltage()
588 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_enable() local
591 switch (ldo) { in wm8350_ldo_set_suspend_enable()
617 int volt_reg, ldo = rdev_get_id(rdev); in wm8350_ldo_set_suspend_disable() local
620 switch (ldo) { in wm8350_ldo_set_suspend_disable()
691 int wm8350_ldo_set_slot(struct wm8350 *wm8350, int ldo, u16 start, u16 stop) in wm8350_ldo_set_slot() argument
697 __func__, ldo, start, stop); in wm8350_ldo_set_slot()
703 switch (ldo) { in wm8350_ldo_set_slot()
DMakefile42 obj-$(CONFIG_REGULATOR_LP8788) += lp8788-ldo.o
94 obj-$(CONFIG_REGULATOR_WM831X) += wm831x-ldo.o
/drivers/mfd/
Dwm8994-core.c225 static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) in wm8994_ldo_in_use() argument
232 ldo_pdata = &pdata->ldo[ldo]; in wm8994_ldo_in_use()
240 static int wm8994_ldo_in_use(struct wm8994_pdata *pdata, int ldo) in wm8994_ldo_in_use() argument
305 pdata->ldo[0].enable = of_get_named_gpio(np, "wlf,ldo1ena", 0); in wm8994_set_pdata_from_of()
306 if (pdata->ldo[0].enable < 0) in wm8994_set_pdata_from_of()
307 pdata->ldo[0].enable = 0; in wm8994_set_pdata_from_of()
309 pdata->ldo[1].enable = of_get_named_gpio(np, "wlf,ldo2ena", 0); in wm8994_set_pdata_from_of()
310 if (pdata->ldo[1].enable < 0) in wm8994_set_pdata_from_of()
311 pdata->ldo[1].enable = 0; in wm8994_set_pdata_from_of()
/drivers/ssb/
Ddriver_chipcommon_pmu.c593 int ldo; in ssb_pmu_set_ldo_paref() local
597 ldo = SSB_PMURES_4312_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
600 ldo = SSB_PMURES_4328_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
603 ldo = SSB_PMURES_5354_PA_REF_LDO; in ssb_pmu_set_ldo_paref()
610 chipco_set32(cc, SSB_CHIPCO_PMU_MINRES_MSK, 1 << ldo); in ssb_pmu_set_ldo_paref()
612 chipco_mask32(cc, SSB_CHIPCO_PMU_MINRES_MSK, ~(1 << ldo)); in ssb_pmu_set_ldo_paref()