Skip to content

Commit c1affb9

Browse files
decsnydleach02
authored andcommitted
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 <[email protected]>
1 parent 4b3d88e commit c1affb9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/regulator/regulator_nxp_vref.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ static int regulator_nxp_vref_init(const struct device *dev)
199199
base->CSR |= VREF_CSR_ICOMPEN_MASK;
200200
}
201201

202+
/* Workaround some chips not resetting the value correctly on reset */
203+
base->UTRIM = 0;
204+
202205
return regulator_common_init(dev, false);
203206
}
204207

0 commit comments

Comments
 (0)