Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2018 10:26:18 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r342076 - head/sys/arm/allwinner
Message-ID:  <201812141026.wBEAQI0H062580@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Fri Dec 14 10:26:17 2018
New Revision: 342076
URL: https://svnweb.freebsd.org/changeset/base/342076

Log:
  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

Modified:
  head/sys/arm/allwinner/axp81x.c

Modified: head/sys/arm/allwinner/axp81x.c
==============================================================================
--- head/sys/arm/allwinner/axp81x.c	Fri Dec 14 10:25:22 2018	(r342075)
+++ head/sys/arm/allwinner/axp81x.c	Fri Dec 14 10:26:17 2018	(r342076)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812141026.wBEAQI0H062580>