]> asedeno.scripts.mit.edu Git - linux.git/commit
mfd: axp20x: Add support for dts property "xpowers,master-mode"
authorRask Ingemann Lambertsen <rask@formelder.dk>
Wed, 22 Feb 2017 19:42:02 +0000 (20:42 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:04 +0000 (09:25 +0100)
commitc0369698e6455c734a772e3acb09cff9a0c8ed9f
treeb4a9a6be8970cf968a18c7546b9c482c418181a5
parent8461cf20d17e0090e9236b73d25b31be4f7fadc5
mfd: axp20x: Add support for dts property "xpowers,master-mode"

commit b101829a029a ("mfd: axp20x: Fix AXP806 access errors on cold boot")
was intended to fix the case where a board uses an AXP806 in slave mode,
but the boot loader leaves it in master mode for lack of AXP806 support.
But now the driver breaks on boards where the PMIC is operating in master
mode. This patch lets the driver use the new device tree property
"xpowers,master-mode" to set the correct operating mode for the board.

Fixes: 8824ee857348 ("mfd: axp20x: Add support for AXP806 PMIC")
Signed-off-by: Rask Ingemann Lambertsen <rask@formelder.dk>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/axp20x.c