]> git.baikalelectronics.ru Git - kernel.git/commit
regualtor: pfuze100: correct sw1a/sw2 on pfuze3000
authorRobin Gong <yibin.gong@nxp.com>
Sun, 14 Jun 2020 21:54:08 +0000 (05:54 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 15 Jun 2020 14:39:53 +0000 (15:39 +0100)
commitae4aa4e43c997f58840009432aa0a142e13d3f33
treeff3cfc690d447056a7202f14db8f8f242a164543
parent9701d5f6a33837f7790c9fc5632944148ac8207d
regualtor: pfuze100: correct sw1a/sw2 on pfuze3000

PFUZE100_SWB_REG is not proper for sw1a/sw2, because enable_mask/enable_reg
is not correct. On PFUZE3000, sw1a/sw2 should be the same as sw1a/sw2 on
pfuze100 except that voltages are not linear, so add new PFUZE3000_SW_REG
and pfuze3000_sw_regulator_ops which like the non-linear PFUZE100_SW_REG
and pfuze100_sw_regulator_ops.

Fixes: 764d4f567f7f ("regulator: pfuze100: update voltage setting for pfuze3000 sw1a")
Reported-by: Christophe Meynard <Christophe.Meynard@ign.fr>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Link: https://lore.kernel.org/r/1592171648-8752-1-git-send-email-yibin.gong@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pfuze100-regulator.c