Files
u-boot/doc/usage/cmd/reset.rst
Simon Glass f74db7258c sysreset: Add -c flag for explicit cold reset
Add support for reset -c flag to explicitly request cold reset.
This provides symmetry with -w (warm) and -u (firmware UI) flags.

For EFI apps, this performs EFI_RESET_COLD which does a full system
reboot without going to firmware setup interface.

Series-to: concept
Series-cc: heinrich
Cover-letter:
efi: Improve integration of the app with a Shim environment
This series collects together various small fixes and improvements which
make it easier to use the U-Boot EFI app in a bootflow which includes
Shim:

- 'Reset' back to the caller (e.g. EDK2)
- Machine reset using cold and warm reset
- Reset and enter the firmware UI
- Shim command now supports persistent debug
- Bootmenu shows the real media for each bootflow rather than just 'efi'
END

Signed-off-by: Simon Glass <sjg@chromium.org>
2025-09-02 08:51:40 -06:00

40 lines
794 B
ReStructuredText

.. SPDX-License-Identifier: GPL-2.0+
.. index::
single: reset (command)
reset command
=============
Synopsis
--------
::
reset [-c] [-w] [-u]
Description
-----------
Perform reset of the CPU. By default does COLD reset, which resets CPU,
DDR and peripherals, on some boards also resets external PMIC.
-w
Do warm WARM, reset CPU but keep peripheral/DDR/PMIC active.
-h
Do a hot reset, if supported, which returns back to the program which
started U-Boot.
-u
Reset to firmware UI (EFI app only). Sets the
EFI_OS_INDICATIONS_BOOT_TO_FW_UI bit in the OsIndications variable and
performs a warm reset, causing the firmware to boot directly to its
setup/configuration interface.
Return value
------------
The return value $? is always set to 0 (true).