Attention is currently required from: Boris Mittelberg, Caveh Jalali.
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86337?usp=email )
Change subject: ec/google/chromeec: Implement early power off ......................................................................
ec/google/chromeec: Implement early power off
This commit implements the platform_do_intel_early_poweroff() function for the Chrome EC. This allows the system to power off before memory initialization by triggering an EC reset with EC_REBOOT_COLD_AP_OFF.
This provides a platform-specific implementation for early power off on Chrome EC-based systems.
BUG=b:339673254 TEST=Able to build and boot google/brox.
Change-Id: Ia53469feb2a020b38a5414728159b09c86c7e32d Signed-off-by: Subrata Banik subratabanik@google.com --- M src/ec/google/chromeec/ec.c 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/86337/1
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c index 2e8961f..ec81553 100644 --- a/src/ec/google/chromeec/ec.c +++ b/src/ec/google/chromeec/ec.c @@ -8,6 +8,8 @@ #include <device/device.h> #include <device/path.h> #include <elog.h> +#include <halt.h> +#include <intelblocks/pmclib.h> #include <rtc.h> #include <security/vboot/vboot_common.h> #include <stdlib.h> @@ -1669,3 +1671,9 @@
return false; } + +void platform_do_intel_early_poweroff(void) +{ + google_chromeec_reboot(EC_REBOOT_COLD_AP_OFF, 0); + halt(); +}