summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/gpio.c2
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/ramstage.c11
-rw-r--r--src/mainboard/google/dedede/variants/drawcia/variant.c1
3 files changed, 13 insertions, 1 deletions
diff --git a/src/mainboard/google/dedede/variants/drawcia/gpio.c b/src/mainboard/google/dedede/variants/drawcia/gpio.c
index 955d9a051b..9786547462 100644
--- a/src/mainboard/google/dedede/variants/drawcia/gpio.c
+++ b/src/mainboard/google/dedede/variants/drawcia/gpio.c
@@ -31,6 +31,7 @@ static const struct pad_config board6or8_gpio_table[] = {
/* H0 : WWAN_PERST */
PAD_CFG_GPO(GPP_H0, 0, PLTRST),
+ PAD_CFG_GPO(GPP_H17, 0, PLTRST),
};
static const struct pad_config lte_disable_pads[] = {
@@ -38,6 +39,7 @@ static const struct pad_config lte_disable_pads[] = {
PAD_NC(GPP_B7, NONE),
PAD_NC(GPP_D0, NONE),
PAD_NC(GPP_H0, NONE),
+ PAD_NC(GPP_H17, NONE),
};
const struct pad_config *variant_override_gpio_table(size_t *num)
diff --git a/src/mainboard/google/dedede/variants/drawcia/ramstage.c b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
index 5acc033677..2500b96af7 100644
--- a/src/mainboard/google/dedede/variants/drawcia/ramstage.c
+++ b/src/mainboard/google/dedede/variants/drawcia/ramstage.c
@@ -1,11 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#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);
void variant_devtree_update(void)
{
- update_lte_device(&lte_reset_gpio, &lte_enable_gpio);
+
+ uint32_t board_version = board_id();
+
+ 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);
}
diff --git a/src/mainboard/google/dedede/variants/drawcia/variant.c b/src/mainboard/google/dedede/variants/drawcia/variant.c
index c557fe0a98..a8ec58167a 100644
--- a/src/mainboard/google/dedede/variants/drawcia/variant.c
+++ b/src/mainboard/google/dedede/variants/drawcia/variant.c
@@ -29,6 +29,7 @@ const char *mainboard_vbt_filename(void)
static void power_off_lte_module(void)
{
gpio_output(GPP_H0, 0);
+ gpio_output(GPP_H17, 0);
mdelay(20);
gpio_output(GPP_A10, 0);
}