From 6c8fcde80c817802681499e14181bc039bdf9876 Mon Sep 17 00:00:00 2001 From: Emmanuel Vadot Date: Fri, 14 Dec 2018 10:26:17 +0000 Subject: [PATCH] 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 X-MFC-With: r340848 --- sys/arm/allwinner/axp81x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,