]> git.dujemihanovic.xyz Git - u-boot.git/commit
bootm: Adjust how the board is reset
authorSimon Glass <sjg@chromium.org>
Sat, 16 Dec 2023 03:14:10 +0000 (20:14 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 21:07:52 +0000 (16:07 -0500)
commit6443a3dad5319d24aa3d88cf11174a84c70e989a
treec05ef453d290629d79859d9c9fafc0c2695a48e2
parentc35bfd07ecdf683b6a80132f5ac6201d6d24c734
bootm: Adjust how the board is reset

Use reset_cpu() to reset the board, copying the logic from the 'reset'
command. This makes more sense than directly calling the do_reset()
function with the arguments passsed to the bootm command.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
boot/bootm.c