]> git.ipfire.org Git - people/ms/u-boot.git/commit
power: pmic: tps65218: Fix tps65218_voltage_update function
authorKeerthy <j-keerthy@ti.com>
Wed, 24 May 2017 04:49:27 +0000 (10:19 +0530)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 29 May 2017 08:28:52 +0000 (17:28 +0900)
commit6183b29559107650cb38f905e069a93ff9da1d7d
treef40bd69bec19df3e547c6292d37c10cfa24096b0
parentf98205c7e44ad6919cc22451cf25eb216d14d25e
power: pmic: tps65218: Fix tps65218_voltage_update function

Currently while setting the vsel value for dcdc1 and dcdc2
the driver is wrongly masking the entire 8 bits in the process
clearing PFM (bit7) field as well. Hence describe an appropriate
mask for vsel field and modify only those bits in the vsel
mask.

Source: http://www.ti.com/lit/ds/symlink/tps65218.pdf

Signed-off-by: Keerthy <j-keerthy@ti.com>
Fixes: 86db550b38 ("power: Add support for the TPS65218 PMIC")
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/power/pmic/pmic_tps65218.c
include/power/tps65218.h