ec/google/chromeec: Implement early power off support
This commit renames the `google_chromeec_do_early_poweroff()` function to `platform_do_early_poweroff()`, aligning it with the API that adds early power off support using the Chrome EC. It selects the `HAVE_EARLY_POWEROFF_SUPPORT` Kconfig option for platform to perform early power off procedures. Change-Id: I0c634d69de36fe8bdb6a61c121e321d3626ac3ff Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86379 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
0fe338c88b
commit
c8fc650c5b
3 changed files with 9 additions and 9 deletions
|
|
@ -3,6 +3,7 @@
|
|||
config EC_GOOGLE_CHROMEEC
|
||||
bool
|
||||
select EC_SUPPORTS_DPTF_TEVT
|
||||
select HAVE_EARLY_POWEROFF_SUPPORT
|
||||
help
|
||||
Google's Chrome EC
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
#include <device/path.h>
|
||||
#include <elog.h>
|
||||
#include <halt.h>
|
||||
#include <reset.h>
|
||||
#include <rtc.h>
|
||||
#include <security/vboot/vboot_common.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -1671,7 +1672,13 @@ bool google_chromeec_is_battery_present(void)
|
|||
return false;
|
||||
}
|
||||
|
||||
void google_chromeec_do_early_poweroff(void)
|
||||
/*
|
||||
* Performs early power off.
|
||||
*
|
||||
* This function handles the necessary steps to initiate an early power off
|
||||
* sequence.
|
||||
*/
|
||||
void platform_do_early_poweroff(void)
|
||||
{
|
||||
google_chromeec_reboot(EC_REBOOT_COLD_AP_OFF, 0);
|
||||
halt();
|
||||
|
|
|
|||
|
|
@ -471,14 +471,6 @@ bool google_chromeec_is_below_critical_threshold(void);
|
|||
*/
|
||||
bool google_chromeec_is_battery_present(void);
|
||||
|
||||
/*
|
||||
* Performs early power off.
|
||||
*
|
||||
* This function handles the necessary steps to initiate an early power off
|
||||
* sequence.
|
||||
*/
|
||||
void google_chromeec_do_early_poweroff(void);
|
||||
|
||||
/**
|
||||
* Determine if the UCSI stack is currently active.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue