From 7125318ac454b5e60cfadbe375ce6b8e97706b20 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Mon, 12 Sep 2022 10:45:45 -0600 Subject: mb/google/dedede/var/boten: Turn off camera during S0ix Add a variant specific S0ix hook to fill the SSDT table to disable and enable camera during suspend and resume respectively. BUG=b:206911455 TEST=Build Boten BIOS image. Ensure that camera is disabled during suspend and enabled during resume. Change-Id: I3229b22b8d8651bf2d9df25b10ce6749efde7cf6 Signed-off-by: Karthikeyan Ramasubramanian Reviewed-on: https://review.coreboot.org/c/coreboot/+/67388 Tested-by: build bot (Jenkins) Reviewed-by: Henry Sun Reviewed-by: Shou-Chieh Hsu Reviewed-by: Zhuohao Lee Reviewed-by: Maulik Vaghela --- src/mainboard/google/dedede/variants/boten/variant.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mainboard/google/dedede/variants/boten/variant.c') diff --git a/src/mainboard/google/dedede/variants/boten/variant.c b/src/mainboard/google/dedede/variants/boten/variant.c index 432c950190..8d60bf5ce5 100644 --- a/src/mainboard/google/dedede/variants/boten/variant.c +++ b/src/mainboard/google/dedede/variants/boten/variant.c @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ #include +#include #include #include #include @@ -46,3 +47,11 @@ const char *get_wifi_sar_cbfs_filename(void) return WIFI_SAR_CBFS_DEFAULT_FILENAME; } + +void variant_generate_s0ix_hook(enum s0ix_entry entry) +{ + if (entry == S0IX_ENTRY) + acpigen_soc_clear_tx_gpio(GPP_D13); + else if (entry == S0IX_EXIT) + acpigen_soc_set_tx_gpio(GPP_D13); +} -- cgit v1.2.3