From ec1068883fcbc9997a9fba4615c5eb8a4793b4b4 Mon Sep 17 00:00:00 2001 From: Brian Hsu Date: Wed, 24 Sep 2025 15:13:03 +0800 Subject: [PATCH] mb/google/nissa/var/guren: Add initial WWAN related settings 1. Add DB_1C_5G 8 on DB_USB overridetree. 2. Also disable LTE-related GPIOs based on fw_config when system was DB_1C_5G. BUG=b:445338278 BRANCH=firmware-nissa-15217.B TEST=emerge-nissa coreboot chromeos-bootimage Check 5G LTE module detectable by command # mmcli -m a. Change-Id: I3d525d9de151427d38485882117b59939b9da5c7 Signed-off-by: Joyce Ciou Reviewed-on: https://review.coreboot.org/c/coreboot/+/89606 Reviewed-by: Eric Lai Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/variants/guren/fw_config.c | 7 ++++--- src/mainboard/google/brya/variants/guren/overridetree.cb | 4 ++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/mainboard/google/brya/variants/guren/fw_config.c b/src/mainboard/google/brya/variants/guren/fw_config.c index 63e55a3b40..8d4c1b5e2b 100644 --- a/src/mainboard/google/brya/variants/guren/fw_config.c +++ b/src/mainboard/google/brya/variants/guren/fw_config.c @@ -44,10 +44,11 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table) ARRAY_SIZE(hdmi_disable_pads)); } - /* Set to Disable LTE-related GPIO pins when field DB_USB is not DB_1C_LTE and DB_HDMI_LTE. */ + /* Set to Disable LTE-related GPIO pins when field DB_USB is not DB_1C_LTE, DB_HDMI_LTE and DB_1C_5G. */ if (!fw_config_probe(FW_CONFIG(DB_USB, DB_1C_LTE)) - && !fw_config_probe(FW_CONFIG(DB_USB, DB_HDMI_LTE))) { - printk(BIOS_INFO, "Disable LTE GPIO pins.\n"); + && !fw_config_probe(FW_CONFIG(DB_USB, DB_HDMI_LTE)) + && !fw_config_probe(FW_CONFIG(DB_USB, DB_1C_5G))) { + printk(BIOS_INFO, "Disable LTE/5G GPIO pins.\n"); gpio_padbased_override(padbased_table, lte_disable_pads, ARRAY_SIZE(lte_disable_pads)); } diff --git a/src/mainboard/google/brya/variants/guren/overridetree.cb b/src/mainboard/google/brya/variants/guren/overridetree.cb index 8c50fd76d8..f74a20e562 100644 --- a/src/mainboard/google/brya/variants/guren/overridetree.cb +++ b/src/mainboard/google/brya/variants/guren/overridetree.cb @@ -12,6 +12,7 @@ fw_config option DB_HDMI_LTE 5 option DB_HDMI 6 option DB_HDMI_1A 7 + option DB_1C_5G 8 end field SD_CARD 9 option SD_ABSENT 0 @@ -479,6 +480,7 @@ chip soc/intel/alderlake device i2c 28 on probe DB_USB DB_1C_LTE probe DB_USB DB_HDMI_LTE + probe DB_USB DB_1C_5G end end end #I2C2 @@ -651,6 +653,7 @@ chip soc/intel/alderlake device ref usb2_port4 on probe DB_USB DB_1C_LTE probe DB_USB DB_HDMI_LTE + probe DB_USB DB_1C_5G end end chip drivers/usb/acpi @@ -696,6 +699,7 @@ chip soc/intel/alderlake device ref usb3_port2 on probe DB_USB DB_1C_LTE probe DB_USB DB_HDMI_LTE + probe DB_USB DB_1C_5G end end end