diff options
-rw-r--r-- | common/system.c | 4 | ||||
-rw-r--r-- | include/ec_commands.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/common/system.c b/common/system.c index 49153f6194..be900f58fc 100644 --- a/common/system.c +++ b/common/system.c @@ -898,9 +898,9 @@ static int handle_pending_reboot(enum ec_reboot_cmd cmd) return EC_ERROR_INVAL; if (IS_ENABLED(CONFIG_POWER_BUTTON_INIT_IDLE)) { - CPRINTS("Clearing AP_OFF"); + CPRINTS("Clearing AP_IDLE"); chip_save_reset_flags(chip_read_reset_flags() & - ~EC_RESET_FLAG_AP_OFF); + ~EC_RESET_FLAG_AP_IDLE); } /* Intentional fall-through */ case EC_REBOOT_HIBERNATE: diff --git a/include/ec_commands.h b/include/ec_commands.h index 390df6a687..877ce3476b 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -5131,7 +5131,7 @@ enum ec_reboot_cmd { EC_REBOOT_COLD = 4, /* Cold-reboot */ EC_REBOOT_DISABLE_JUMP = 5, /* Disable jump until next reboot */ EC_REBOOT_HIBERNATE = 6, /* Hibernate EC */ - EC_REBOOT_HIBERNATE_CLEAR_AP_OFF = 7, /* and clears AP_OFF flag */ + EC_REBOOT_HIBERNATE_CLEAR_AP_OFF = 7, /* and clears AP_IDLE flag */ }; /* Flags for ec_params_reboot_ec.reboot_flags */ |