]> git.dujemihanovic.xyz Git - u-boot.git/commit
pmic: pca9450: Make warm reset on WDOG_B assertion
authorMarek Vasut <marex@denx.de>
Fri, 9 Dec 2022 19:35:46 +0000 (20:35 +0100)
committerStefano Babic <sbabic@denx.de>
Mon, 30 Jan 2023 22:23:01 +0000 (23:23 +0100)
commit910c7a881f5b64dc92d3ba9232ce59ae54fd6486
treedbca00482ee4ff762328d6249d2e1c3bc1ee982c
parentf75e92f7f7bffe724dccd6769b37f95e0aa7842c
pmic: pca9450: Make warm reset on WDOG_B assertion

The default configuration of the PMIC behavior makes the PMIC
power cycle most regulators on WDOG_B assertion. This power
cycling causes the memory contents of OCRAM to be lost.
Some systems neeeds some memory that survives reset and
reboot, therefore this patch is created.

The implementation is taken almost verbatim from Linux commit
2364a64d0673f ("regulator: pca9450: Make warm reset on WDOG_B assertion")

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/power/pmic/pca9450.c
include/power/pca9450.h