From e5c547c2d75a452e3230cf5923c5b7f318993ed3 Mon Sep 17 00:00:00 2001 From: Tony Huang Date: Tue, 6 Sep 2022 17:03:27 +0800 Subject: mb/google/dedede: Generate MS0X entry and provide variant hook BUG=b:245426120 BRANCH=firmware-dedede-13606.B TEST=emerge-dedede coreboot check SSDT table has MS0X entry Scope (\_SB) { Method (MS0X, 1, Serialized) { If ((Arg0 == One)) {} Else { } } } Change-Id: Id01089531503e62231c5ab19e4cd8056198b9acb Signed-off-by: Tony Huang Reviewed-on: https://review.coreboot.org/c/coreboot/+/67373 Tested-by: build bot (Jenkins) Reviewed-by: Karthik Ramasubramanian Reviewed-by: Eric Lai --- .../google/dedede/variants/baseboard/include/baseboard/variants.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/dedede/variants') diff --git a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h index aef30751cc..fda5c31ab8 100644 --- a/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/dedede/variants/baseboard/include/baseboard/variants.h @@ -15,6 +15,11 @@ const struct pad_config *variant_early_gpio_table(size_t *num); const struct pad_config *variant_sleep_gpio_table(size_t *num); const struct pad_config *variant_override_gpio_table(size_t *num); +enum s0ix_entry { + S0IX_EXIT, + S0IX_ENTRY, +}; + /** * Get board's Hardware features as defined in FW_CONFIG * @@ -44,4 +49,6 @@ void variant_devtree_update(void); /* Modify LTE devictree settings during ramstage. */ void update_lte_device(struct acpi_gpio *lte_reset_gpio, struct acpi_gpio *lte_enable_gpio); + +void variant_generate_s0ix_hook(enum s0ix_entry); #endif /*__BASEBOARD_VARIANTS_H__ */ -- cgit v1.2.3