summaryrefslogtreecommitdiffstats
path: root/dts/Bindings/regulator
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2022-03-10 22:12:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-05-25 14:08:47 +0200
commitd2b3d4f45d43e20e5cb70943fa1cd3c23148411d (patch)
tree042f39a6ed3a9c76892f0e39f5da93b1059ce8b6 /dts/Bindings/regulator
parent6cf197fa61f9cc7dbc0f3de4c529b95071099fd1 (diff)
downloadbarebox-d2b3d4f45d43e20e5cb70943fa1cd3c23148411d.tar.gz
barebox-d2b3d4f45d43e20e5cb70943fa1cd3c23148411d.tar.xz
power: reset: reboot-mode: Fix resetting to normal mode
To clear the reboot mode for next reboot during registration of a reboot mode driver we call reboot->write() with a zero initialized u32 array with a single entry. This is wrong for two reasons. First the array is too short, for i.MX6 we need to entries. Then it is assumed that the magic to write to the register is '0' for normal boot, but it could be an arbitrary value. To fix this pick the index of the normal boot entry and pass the corresponding magic values to reboot->write(). While at it only do this when a normal boot entry actually exists. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20220310211207.3949118-1-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'dts/Bindings/regulator')
0 files changed, 0 insertions, 0 deletions