Skip to content

Commit 7be5318

Browse files
ldewanganbroonie
authored andcommitted
regulator: tps65910: correct init value of n_voltages
Recent change in the core driver to get the maximum voltage is based on the (n_voltages -1) steps of voltage. For the tps65910, the (n_voltages -1)th step voltage is calculated based on the callback function list_voltage. This function direct maps the datasheet and adjust the first few steps for initial voltage as per datasheet, and hence initialize the n_voltages based on datasheet. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent b669e0a commit 7be5318

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

drivers/regulator/tps65910-regulator.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -194,66 +194,66 @@ static struct tps_info tps65911_regs[] = {
194194
{
195195
.name = "vdd1",
196196
.vin_name = "vcc1",
197-
.n_voltages = 73,
197+
.n_voltages = 0x4C,
198198
.enable_time_us = 350,
199199
},
200200
{
201201
.name = "vdd2",
202202
.vin_name = "vcc2",
203-
.n_voltages = 73,
203+
.n_voltages = 0x4C,
204204
.enable_time_us = 350,
205205
},
206206
{
207207
.name = "vddctrl",
208-
.n_voltages = 65,
208+
.n_voltages = 0x44,
209209
.enable_time_us = 900,
210210
},
211211
{
212212
.name = "ldo1",
213213
.vin_name = "vcc6",
214-
.n_voltages = 47,
214+
.n_voltages = 0x33,
215215
.enable_time_us = 420,
216216
},
217217
{
218218
.name = "ldo2",
219219
.vin_name = "vcc6",
220-
.n_voltages = 47,
220+
.n_voltages = 0x33,
221221
.enable_time_us = 420,
222222
},
223223
{
224224
.name = "ldo3",
225225
.vin_name = "vcc5",
226-
.n_voltages = 24,
226+
.n_voltages = 0x1A,
227227
.enable_time_us = 230,
228228
},
229229
{
230230
.name = "ldo4",
231231
.vin_name = "vcc5",
232-
.n_voltages = 47,
232+
.n_voltages = 0x33,
233233
.enable_time_us = 230,
234234
},
235235
{
236236
.name = "ldo5",
237237
.vin_name = "vcc4",
238-
.n_voltages = 24,
238+
.n_voltages = 0x1A,
239239
.enable_time_us = 230,
240240
},
241241
{
242242
.name = "ldo6",
243243
.vin_name = "vcc3",
244-
.n_voltages = 24,
244+
.n_voltages = 0x1A,
245245
.enable_time_us = 230,
246246
},
247247
{
248248
.name = "ldo7",
249249
.vin_name = "vcc3",
250-
.n_voltages = 24,
250+
.n_voltages = 0x1A,
251251
.enable_time_us = 230,
252252
},
253253
{
254254
.name = "ldo8",
255255
.vin_name = "vcc3",
256-
.n_voltages = 24,
256+
.n_voltages = 0x1A,
257257
.enable_time_us = 230,
258258
},
259259
};

0 commit comments

Comments
 (0)