From af92d07503600695df44f59aa7c8f9c19b4e462d Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Mon, 14 Mar 2022 15:08:27 +0800 Subject: mb/google/brya: Remove mainboard.asl Use C code to generate MS0X entry and provide variant hook. BUG=b:207144468 TEST=check SSDT table has the same entry. Scope (\_SB) { Method (MS0X, 1, Serialized) { If ((Arg0 == One)) { \_SB.PCI0.CTXS (0x148) } Else { \_SB.PCI0.STXS (0x148) } } } Signed-off-by: Eric Lai Change-Id: Ic36543e5cbaf8aaa7d933dcf54badc5f40e8ef02 Reviewed-on: https://review.coreboot.org/c/coreboot/+/62779 Tested-by: build bot (Jenkins) Reviewed-by: Kangheui Won Reviewed-by: Tim Wawrzynczak --- .../google/brya/variants/baseboard/include/baseboard/variants.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mainboard/google/brya/variants/baseboard/include') diff --git a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h index 7c1ce21f6c..9accc08f9d 100644 --- a/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h +++ b/src/mainboard/google/brya/variants/baseboard/include/baseboard/variants.h @@ -25,6 +25,13 @@ bool variant_is_half_populated(void); void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config); void variant_fill_ssdt(const struct device *dev); +enum s0ix_entry { + S0IX_EXIT, + S0IX_ENTRY, +}; + +void variant_generate_s0ix_hook(enum s0ix_entry); + /* Modify devictree settings during ramstage */ void variant_devtree_update(void); -- cgit v1.2.3