summaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/variants/drawcia
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/google/dedede/variants/drawcia')
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/overridetree.cb27
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/ramstage.c24
2 files changed, 37 insertions, 14 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
index 93ed85813e..cb3ff48979 100644
--- a/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
+++ b/src/mainboard/google/dedede/variants/drawcia/overridetree.cb
@@ -151,13 +151,25 @@ chip soc/intel/jasperlake
chip drivers/usb/acpi
device usb 0.0 on
chip drivers/usb/acpi
- register "desc" = ""Multi-use Port""
+ register "desc" = ""LTE""
+ register "type" = "UPC_TYPE_INTERNAL"
+ register "group" = "ACPI_PLD_GROUP(2, 2)"
+ register "has_power_resource" = "1"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17)"
+ register "reset_off_delay_ms" = "20"
+ register "enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10)"
+ register "enable_delay_ms" = "20"
+ device usb 2.3 alias lte_usb2 on
+ probe DB_PORTS DB_PORTS_1A_HDMI_LTE
+ end
+ end
+ chip drivers/usb/acpi
+ register "desc" = ""Right Type-A Port""
register "type" = "UPC_TYPE_A"
register "group" = "ACPI_PLD_GROUP(2, 2)"
device usb 2.3 on
probe DB_PORTS DB_PORTS_1A_HDMI
probe DB_PORTS DB_PORTS_1C_1A
- probe DB_PORTS DB_PORTS_1A_HDMI_LTE
end
end
chip drivers/usb/acpi
@@ -166,13 +178,20 @@ chip soc/intel/jasperlake
device usb 2.5 on end
end
chip drivers/usb/acpi
- register "desc" = ""Multi-use Port""
+ register "desc" = ""LTE""
+ register "type" = "UPC_TYPE_INTERNAL"
+ register "group" = "ACPI_PLD_GROUP(2, 2)"
+ device usb 3.3 on
+ probe DB_PORTS DB_PORTS_1A_HDMI_LTE
+ end
+ end
+ chip drivers/usb/acpi
+ register "desc" = ""Right Type-A Port""
register "type" = "UPC_TYPE_USB3_A"
register "group" = "ACPI_PLD_GROUP(2, 2)"
device usb 3.3 on
probe DB_PORTS DB_PORTS_1A_HDMI
probe DB_PORTS DB_PORTS_1C_1A
- probe DB_PORTS DB_PORTS_1A_HDMI_LTE
end
end
end
diff --git a/src/mainboard/google/dedede/variants/drawcia/ramstage.c b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
index 2500b96af7..26f1532274 100644
--- a/src/mainboard/google/dedede/variants/drawcia/ramstage.c
+++ b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
@@ -2,19 +2,23 @@
#include <baseboard/variants.h>
#include <boardid.h>
-
-static struct acpi_gpio lte_reset_gpio = ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0);
-static struct acpi_gpio lte_enable_gpio = ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_A10);
-/* New lte reset for drapwer DVT*/
-static struct acpi_gpio lte_new_reset_gpio = ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H17);
+#include <device/device.h>
+#include <drivers/usb/acpi/chip.h>
void variant_devtree_update(void)
{
-
uint32_t board_version = board_id();
+ struct device *lte_usb2 = DEV_PTR(lte_usb2);
+ struct drivers_usb_acpi_config *config;
+ struct acpi_gpio lte_reset_gpio = ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_H0);
+
+ /* board version 9 is drawper EVT */
+ if (board_version > 9)
+ return;
+
+ if (lte_usb2 == NULL)
+ return;
- if (board_version <= 9) /* board version 9 is drawper EVT */
- update_lte_device(&lte_reset_gpio, &lte_enable_gpio);
- else
- update_lte_device(&lte_new_reset_gpio, &lte_enable_gpio);
+ config = config_of(lte_usb2);
+ config->reset_gpio = lte_reset_gpio;
}