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 <Joyce_Ciou@pegatron.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/89606
Reviewed-by: Eric Lai <ericllai@google.com>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Brian Hsu 2025-09-24 15:13:03 +08:00 committed by Matt DeVillier
commit ec1068883f
2 changed files with 8 additions and 3 deletions

View file

@ -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));
}

View file

@ -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