Using the 'reboot edl' command in Linux, the platform can reboot to the Emergency Download mode. Implement the same for U-Boot.
v4: * Update documentation about '-edl' option * Add API to check for support of PSCI functions * Check if RESET2 is supported before issuing the command * Fix compiler warnings v3: * Introduce a sysreset op that will pass down the 'reset' command arguments to registered handlers * Handle 'reset to edl' alone in qcom-psci driver v2: * Rebased to recent sources * Dropped the first patch as it is not applicable anymore * Bind the new driver from psci driver Varadarajan Narayanan (5): arm: psci: Add API to check for support of specific PSCI function drivers: sysreset: Add sysreset op that can take arguments sysreset: Implement PSCI based reset to EDL mode for QCOM SoCs cmd: boot: Add '-edl' option to reset command documentation configs: qcs9100_defconfig: Enable SYSRESET arch/arm/cpu/armv8/fwcall.c | 15 +++++++++ arch/arm/include/asm/system.h | 1 + cmd/boot.c | 3 ++ configs/qcs9100_defconfig | 2 ++ doc/usage/cmd/reset.rst | 2 ++ drivers/firmware/psci.c | 4 +++ drivers/sysreset/Kconfig | 6 ++++ drivers/sysreset/Makefile | 1 + drivers/sysreset/sysreset-uclass.c | 32 +++++++++++++++++++ drivers/sysreset/sysreset_qcom-psci.c | 45 +++++++++++++++++++++++++++ include/sysreset.h | 18 +++++++++++ 11 files changed, 129 insertions(+) create mode 100644 drivers/sysreset/sysreset_qcom-psci.c base-commit: b62e422d6e6878e9bca1d20fe372ffdd7db294fa -- 2.34.1