From 11689486b1c86c8f9987abf39e5780ca5559bcd1 Mon Sep 17 00:00:00 2001 From: Yin Fengwei Date: Thu, 15 Mar 2018 16:49:56 +0800 Subject: [PATCH] DM: acpi: Update the reset value of FADT to trigger cold reboot There are bootloaders require cold reboot as ACPI reboot instead of warm reboot. So we set 0xE to reset value of FADT to make ACPI reboot cold reboot. Signed-off-by: Yin Fengwei --- hw/acpi/acpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/acpi/acpi.c b/hw/acpi/acpi.c index cf774ac55..e1200b089 100644 --- a/hw/acpi/acpi.c +++ b/hw/acpi/acpi.c @@ -393,7 +393,7 @@ basl_fwrite_fadt(FILE *fp) EFPRINTF(fp, "[0008]\t\tAddress : 0000000000000CF9\n"); EFPRINTF(fp, "\n"); - EFPRINTF(fp, "[0001]\t\tValue to cause reset : 06\n"); + EFPRINTF(fp, "[0001]\t\tValue to cause reset : 0E\n"); EFPRINTF(fp, "[0002]\t\tARM Flags (decoded below): 0000\n"); EFPRINTF(fp, "\t\t\tPSCI Compliant : 0\n"); EFPRINTF(fp, "\t\t\tMust use HVC for PSCI : 0\n");