]> git.baikalelectronics.ru Git - uboot.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)
commit53ca9e5290f52bcbc3544ba4ee5ead210363751c
treedbca00482ee4ff762328d6249d2e1c3bc1ee982c
parent2f320e7e654131a842ff15c1ac93efe544be3da9
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