summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/brya/variants/nivviks/fw_config.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/nivviks/fw_config.c b/src/mainboard/google/brya/variants/nivviks/fw_config.c
index 8a4655bc36..5f008921bc 100644
--- a/src/mainboard/google/brya/variants/nivviks/fw_config.c
+++ b/src/mainboard/google/brya/variants/nivviks/fw_config.c
@@ -94,6 +94,15 @@ static const struct pad_config nvme_disable_pads[] = {
PAD_NC_LOCK(GPP_E17, NONE, LOCK_CONFIG),
};
+static const struct pad_config wifi_pcie_enable_pad[] = {
+ /* H3 : SX_EXIT_HOLDOFF => WLAN_PCIE_WAKE_ODL */
+ PAD_CFG_GPI_IRQ_WAKE(GPP_H3, NONE, PLTRST, LEVEL, INVERT),
+ /* D7 : SRCCLKREQ2# ==> WLAN_CLKREQ_ODL */
+ PAD_CFG_NF(GPP_D7, NONE, DEEP, NF1),
+ /* H20 : IMGCLKOUT1 ==> WLAN_PERST_L */
+ PAD_CFG_GPO_LOCK(GPP_H20, 1, LOCK_CONFIG),
+};
+
static const struct pad_config stylus_disable_pads[] = {
/* F13 : SOC_PEN_DETECT_R_ODL */
PAD_NC_LOCK(GPP_F13, NONE, LOCK_CONFIG),
@@ -117,6 +126,12 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
}
}
+ if (fw_config_probe(FW_CONFIG(WIFI_CATEGORY, WIFI_7))) {
+ printk(BIOS_INFO, "Enable PCie based Wifi GPIO pins.\n");
+ gpio_padbased_override(padbased_table, wifi_pcie_enable_pad,
+ ARRAY_SIZE(wifi_pcie_enable_pad));
+ }
+
if (fw_config_probe(FW_CONFIG(SD_CARD, SD_ABSENT))) {
printk(BIOS_INFO, "Disable SD card GPIO pins.\n");
gpio_padbased_override(padbased_table, sd_disable_pads,