Commit c1affb98 authored by Declan Snyder's avatar Declan Snyder Committed by David Leach
Browse files

drivers: regulator_nxp_vref: Clear UTRIM on init

Reset value of this register is supposed to be 0 but I noticed on some
chip, it was not resetting to 0 on system reset, don't know why, but
this supposedly redundant clear is fine for now.

Signed-off-by: default avatarDeclan Snyder <declan.snyder@nxp.com>
parent 4b3d88e8
Loading
Loading
Loading
Loading
+3 −0
Changes for drivers/regulator/regulator_nxp_vref.c: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -199,6 +199,9 @@ static int regulator_nxp_vref_init(const struct device *dev)
		base->CSR |= VREF_CSR_ICOMPEN_MASK;
	}

	/* Workaround some chips not resetting the value correctly on reset */
	base->UTRIM = 0;

	return regulator_common_init(dev, false);
}