aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2018-12-14 10:26:17 +0000
committerEmmanuel Vadot <manu@FreeBSD.org>2018-12-14 10:26:17 +0000
commit6c8fcde80c817802681499e14181bc039bdf9876 (patch)
tree127c5c4c484aa8efe9525e066c9988a5e4d41030
parent701ded4e3018cdf705cadd2071a99435b5e574ee (diff)
downloadsrc-6c8fcde80c817802681499e14181bc039bdf9876.tar.gz
src-6c8fcde80c817802681499e14181bc039bdf9876.zip
arm64: allwinner: axp81x: Fix double invertion for FLDO1
This fix booting on A64 boards when disabling the unused regulators at boot. We did disable all the regulator handled by register 0x13 which of course contain mandatory regulators for the board to be up. Reported by: Mark Millard <marklmi@yahoo.com> X-MFC-With: r340848
Notes
Notes: svn path=/head/; revision=342076
-rw-r--r--sys/arm/allwinner/axp81x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/allwinner/axp81x.c b/sys/arm/allwinner/axp81x.c
index 51bd3626b3aa..3f29223c8b9e 100644
--- a/sys/arm/allwinner/axp81x.c
+++ b/sys/arm/allwinner/axp81x.c
@@ -437,7 +437,7 @@ static struct axp8xx_regdef axp8xx_common_regdefs[] = {
.id = AXP8XX_REG_ID_FLDO1,
.name = "fldo1",
.enable_reg = AXP_POWERCTL3,
- .enable_mask = (uint8_t) ~AXP_POWERCTL3_FLDO1,
+ .enable_mask = (uint8_t) AXP_POWERCTL3_FLDO1,
.enable_value = AXP_POWERCTL3_FLDO1,
.voltage_min = 700,
.voltage_max = 1450,