summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/variants/xol/include/variant/gpio.h2
-rw-r--r--src/mainboard/google/brya/variants/xol/variant.c11
2 files changed, 13 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/xol/include/variant/gpio.h b/src/mainboard/google/brya/variants/xol/include/variant/gpio.h
index c4fe342621..f62197dfe6 100644
--- a/src/mainboard/google/brya/variants/xol/include/variant/gpio.h
+++ b/src/mainboard/google/brya/variants/xol/include/variant/gpio.h
@@ -5,4 +5,6 @@
#include <baseboard/gpio.h>
+#define CAM_PWR GPP_A17
+
#endif
diff --git a/src/mainboard/google/brya/variants/xol/variant.c b/src/mainboard/google/brya/variants/xol/variant.c
index 26ced214d4..8d14715a67 100644
--- a/src/mainboard/google/brya/variants/xol/variant.c
+++ b/src/mainboard/google/brya/variants/xol/variant.c
@@ -1,6 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <acpi/acpigen.h>
#include <baseboard/variants.h>
+#include <variant/gpio.h>
#include <chip.h>
#include <fw_config.h>
#include <sar.h>
@@ -9,3 +11,12 @@ const char *get_wifi_sar_cbfs_filename(void)
{
return "wifi_sar_0.hex";
}
+
+void variant_generate_s0ix_hook(enum s0ix_entry entry)
+{
+ /* Add board-specific MS0X entries */
+ if (entry == S0IX_ENTRY)
+ acpigen_soc_clear_tx_gpio(CAM_PWR);
+ if (entry == S0IX_EXIT)
+ acpigen_soc_set_tx_gpio(CAM_PWR);
+}