summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Marinho <jose.marinho@arm.com>2020-12-10 21:21:30 +0000
committerJose Marinho <jose.marinho@arm.com>2021-08-07 00:30:30 +0100
commit3d8202a60410a47e849776b00b37a346696b19f4 (patch)
tree5b02d5f472a7f08b9290b2ace8b7c380661a5c07
parent900f837bff10d98e7adb9efa4c6b7cd8fd8b9a65 (diff)
[PROTO] cmd, efi: PSCI_SYSTEM_RESET dbg cmd
Signed-off-by: Jose Marinho <jose.marinho@arm.com>
-rw-r--r--cmd/efidebug.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index dcf16d0b1c..79b821cdfb 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -1717,6 +1717,19 @@ static int do_efi_query_info(struct cmd_tbl *cmdtp, int flag,
return CMD_RET_SUCCESS;
}
+static int do_psci_reset(struct cmd_tbl *cmdtp, int flag,
+ int argc, char * const argv[])
+{
+ printf("PSCI reset \n");
+ efi_reset_system( EFI_RESET_WARM,
+ 0,
+ 0,
+ NULL);
+
+ printf("should not be displayed \n");
+
+}
+
static struct cmd_tbl cmd_efidebug_sub[] = {
U_BOOT_CMD_MKENT(boot, CONFIG_SYS_MAXARGS, 1, do_efi_boot_opt, "", ""),
#ifdef CONFIG_EFI_HAVE_CAPSULE_SUPPORT
@@ -1741,6 +1754,8 @@ static struct cmd_tbl cmd_efidebug_sub[] = {
"", ""),
U_BOOT_CMD_MKENT(tup, CONFIG_SYS_MAXARGS, 1, do_swd_cupdate,
"", ""),
+ U_BOOT_CMD_MKENT(psci_reset, CONFIG_SYS_MAXARGS, 1, do_psci_reset,
+ "", ""),
};
/**