commit | 34ee3eda3e6531482b5e2d128b3ecef9b230bbf0 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Dec 15 20:14:09 2023 -0700 |
committer | Tom Rini <trini@konsulko.com> | Thu Dec 21 16:07:52 2023 -0500 |
tree | d00be7eca01d4cff388fff7de1bee09e00794f6d | |
parent | b5e687e5de5758e987b49281e464da60a6920899 [diff] |
riscv: Add a reset_cpu() function The current do_reset() is called from a command context. Add a function which can be used from anywhere, as is done on ARM. Adjust do_reset() to call it. Note that reset_cpu() is normally provided by SYSRESET so make this declaration conditional on that being disabled. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Chanho Park <chanho61.park@samsung.com> Tested-by: Chanho Park <chanho61.park@samsung.com>