Attention is currently required from: Intel coreboot Reviewers, Jayvik Desai, Kapil Porwal, Pranava Y N.
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/86358?usp=email )
Change subject: soc/intel/pantherlake: Add early power off support ......................................................................
soc/intel/pantherlake: Add early power off support
This commit adds support for early power off on Panther Lake platforms. It introduces a platform_do_early_poweroff() function which, when PLATFORM_SUPPORTS_EARLY_POWEROFF is enabled, calls the EC's early power off function (google_chromeec_do_early_poweroff()) if the Chrome EC is present.
This allows for early power off scenarios on platforms that require it.
BUG=b:339673254 TEST=Able to build and boot google/fatcat.
Change-Id: I7f53655e9aeb65b1d5646e1ebcc092b225e6e8ef Signed-off-by: Subrata Banik subratabanik@google.com --- M src/soc/intel/pantherlake/reset.c 1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/86358/1
diff --git a/src/soc/intel/pantherlake/reset.c b/src/soc/intel/pantherlake/reset.c index bc5815a..039dba6 100644 --- a/src/soc/intel/pantherlake/reset.c +++ b/src/soc/intel/pantherlake/reset.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-only */
#include <cf9_reset.h> +#include <ec/google/chromeec/ec.h> #include <intelblocks/cse.h> #include <intelblocks/pmclib.h> #include <soc/intel/common/reset.h> @@ -15,3 +16,11 @@ pmc_global_reset_enable(1); do_full_reset(); } + +#if CONFIG(PLATFORM_SUPPORTS_EARLY_POWEROFF) +void platform_do_early_poweroff(void) +{ + if (CONFIG(EC_GOOGLE_CHROMEEC)) + google_chromeec_do_early_poweroff(); +} +#endif