summaryrefslogtreecommitdiff
path: root/src/vendorcode
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2022-02-04 06:49:59 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-03-30 21:43:00 +0000
commit1d8c7da5b4bd8eac56c78529d9fdfa52658d6862 (patch)
tree2de40a1110087550dafec8758971e46fad0c8a4b /src/vendorcode
parent4a45771edf020e58fb2588aeca16fda929c3cc76 (diff)
ChromeoS: Retain ACPI CNVS contents on S3 resume
For platforms without EC_GOOGLE_CHROMEEC S3 resume path always reported ACTIVE_ECFW_RO because acpi_fill_cnvs() and mainboard_chromeos_acpi_generate() were not called. Change-Id: Iea71a51aba7ab1b6966389c17a1e06ccc96ae0e9 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/61619 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Diffstat (limited to 'src/vendorcode')
-rw-r--r--src/vendorcode/google/chromeos/gnvs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vendorcode/google/chromeos/gnvs.c b/src/vendorcode/google/chromeos/gnvs.c
index 7236662df7..7821786979 100644
--- a/src/vendorcode/google/chromeos/gnvs.c
+++ b/src/vendorcode/google/chromeos/gnvs.c
@@ -40,6 +40,10 @@ void chromeos_init_chromeos_acpi(void)
if (!chromeos_acpi)
return;
+ /* Retain CNVS contents on S3 resume path. */
+ if (acpi_is_wakeup_s3())
+ return;
+
vpd_size = chromeos_vpd_region("RO_VPD", &vpd_base);
if (vpd_size && vpd_base) {
chromeos_acpi->vpd_ro_base = vpd_base;