summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/brya/variants/brask/include/variant/gpio.h2
-rw-r--r--src/mainboard/google/brya/variants/brask/variant.c10
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/brask/include/variant/gpio.h b/src/mainboard/google/brya/variants/brask/include/variant/gpio.h
index 27c87b3fe7..4c28cc90fb 100644
--- a/src/mainboard/google/brya/variants/brask/include/variant/gpio.h
+++ b/src/mainboard/google/brya/variants/brask/include/variant/gpio.h
@@ -5,4 +5,6 @@
#include <baseboard/gpio.h>
+#define NFC_POWER GPP_D3
+
#endif /* __MAINBOARD_GPIO_H__ */
diff --git a/src/mainboard/google/brya/variants/brask/variant.c b/src/mainboard/google/brya/variants/brask/variant.c
index 04105db2ea..3f1796edb2 100644
--- a/src/mainboard/google/brya/variants/brask/variant.c
+++ b/src/mainboard/google/brya/variants/brask/variant.c
@@ -3,9 +3,19 @@
#include <chip.h>
#include <fw_config.h>
#include <baseboard/variants.h>
+#include <variant/gpio.h>
+#include <acpi/acpigen.h>
void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
{
config->cnvi_bt_audio_offload = fw_config_probe(FW_CONFIG(AUDIO,
NAU88L25B_I2S));
}
+
+void variant_generate_s0ix_hook(enum s0ix_entry entry)
+{
+ if (entry == S0IX_ENTRY)
+ acpigen_soc_clear_tx_gpio(NFC_POWER);
+ else if (entry == S0IX_EXIT)
+ acpigen_soc_set_tx_gpio(NFC_POWER);
+}