summaryrefslogtreecommitdiff
path: root/src/mainboard/google/brya/variants/uldren
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/brya/variants/uldren')
-rw-r--r--src/mainboard/google/brya/variants/uldren/overridetree.cb12
-rw-r--r--src/mainboard/google/brya/variants/uldren/variant.c14
2 files changed, 24 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/uldren/overridetree.cb b/src/mainboard/google/brya/variants/uldren/overridetree.cb
index 4f3dfe244e..8b5e09841d 100644
--- a/src/mainboard/google/brya/variants/uldren/overridetree.cb
+++ b/src/mainboard/google/brya/variants/uldren/overridetree.cb
@@ -1,4 +1,8 @@
fw_config
+ field DB_LTE 1 1
+ option LTE_ABSENT 0
+ option LTE_PRESENT 1
+ end
field TOUCHPAD 8 9
option TOUCHPAD_UNKNOWN 0
option TOUCHPAD_EKT3744 1
@@ -377,7 +381,9 @@ chip soc/intel/alderlake
chip drivers/usb/acpi
register "desc" = ""USB2 WWAN""
register "type" = "UPC_TYPE_INTERNAL"
- device ref usb2_port4 on end
+ device ref usb2_port4 on
+ probe DB_LTE LTE_PRESENT
+ end
end
chip drivers/usb/acpi
register "desc" = ""USB2 User Facing Camera""
@@ -405,7 +411,9 @@ chip soc/intel/alderlake
chip drivers/usb/acpi
register "desc" = ""USB3 WWAN""
register "type" = "UPC_TYPE_INTERNAL"
- device ref usb3_port2 on end
+ device ref usb3_port2 on
+ probe DB_LTE LTE_PRESENT
+ end
end
end
end
diff --git a/src/mainboard/google/brya/variants/uldren/variant.c b/src/mainboard/google/brya/variants/uldren/variant.c
index d9a6565eed..f5b060934d 100644
--- a/src/mainboard/google/brya/variants/uldren/variant.c
+++ b/src/mainboard/google/brya/variants/uldren/variant.c
@@ -16,6 +16,15 @@ static const struct pad_config touchscreen_disable_pads[] = {
PAD_NC(GPP_H7, NONE),
};
+static const struct pad_config lte_disable_pads[] = {
+ /* A8 : WWAN_RF_DISABLE_ODL */
+ PAD_NC(GPP_A8, NONE),
+ /* D6 : SRCCLKREQ1# ==> WWAN_EN */
+ PAD_NC(GPP_D6, NONE),
+ /* F12 : WWAN_RST_L */
+ PAD_NC_LOCK(GPP_F12, NONE, LOCK_CONFIG),
+};
+
const char *get_wifi_sar_cbfs_filename(void)
{
return "wifi_sar_0.hex";
@@ -28,4 +37,9 @@ void fw_config_gpio_padbased_override(struct pad_config *padbased_table)
gpio_padbased_override(padbased_table, touchscreen_disable_pads,
ARRAY_SIZE(touchscreen_disable_pads));
}
+ if (fw_config_probe(FW_CONFIG(DB_LTE, LTE_ABSENT))) {
+ printk(BIOS_INFO, "Disable LTE GPIO pins.\n");
+ gpio_padbased_override(padbased_table, lte_disable_pads,
+ ARRAY_SIZE(lte_disable_pads));
+ }
}