diff --git a/src/mainboard/google/brya/variants/moxoe/overridetree.cb b/src/mainboard/google/brya/variants/moxoe/overridetree.cb index 9733305b69..71268f88ac 100644 --- a/src/mainboard/google/brya/variants/moxoe/overridetree.cb +++ b/src/mainboard/google/brya/variants/moxoe/overridetree.cb @@ -13,6 +13,10 @@ fw_config option TC_USB4 0 option TC_USB3 1 end + field WIFI_TYPE 10 + option WIFI_PCIE 0 + option WIFI_CNVI 1 + end field USB_HUB 32 option HUB_ABSENT 0 option HUB_PRESENT 1 @@ -176,7 +180,9 @@ chip soc/intel/alderlake device ref cnvi_wifi on chip drivers/wifi/generic register "wake" = "GPE0_PME_B0" - device generic 0 on end + device generic 0 on + probe WIFI_TYPE WIFI_CNVI + end end end device ref i2c0 on @@ -205,6 +211,30 @@ chip soc/intel/alderlake end end end + device ref pcie_rp5 on + probe WIFI_TYPE WIFI_PCIE + # Enable wlan PCIe 5 using clk 2 + register "pch_pcie_rp[PCH_RP(5)]" = "{ + .clk_src = 2, + .clk_req = 2, + .flags = PCIE_RP_LTR | PCIE_RP_AER, + }" + chip drivers/wifi/generic + register "wake" = "GPE0_DW1_03" + register "add_acpi_dma_property" = "true" + device pci 00.0 on + probe WIFI_TYPE WIFI_PCIE + end + end + chip soc/intel/common/block/pcie/rtd3 + register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_B11)" + register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H20)" + register "srcclk_pin" = "2" + device generic 0 on + probe WIFI_TYPE WIFI_PCIE + end + end + end #PCIE5 WLAN card device ref pcie_rp7 on chip drivers/net register "wake" = "GPE0_DW0_07"