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:
parent
4b3d88e82e
commit
c1affb981d
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user