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: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
Declan Snyder 2024-10-14 16:17:45 -05:00 committed by David Leach
parent 4b3d88e82e
commit c1affb981d

View File

@ -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);
}