diff options
author | Wisley Chen <wisley.chen@quanta.corp-partner.google.com> | 2021-08-27 16:55:08 +0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2021-09-05 19:22:24 +0000 |
commit | cfed6263ab8a2a92bd4e3f806ebd01b9c629d128 (patch) | |
tree | 61c9b6461f69ca54eac56462e2fb83f04c89d6de /src/mainboard/google/dedede | |
parent | 01a4dde26548eb05ee419c86f2d9b30e8472613a (diff) |
mb/google/dedede/var/drawcia: change LTE reset pin to GPP_H17
Drawper change LTE reset pin from GPP_H0 to GPP_H17 from DVT phase.
BUG=b:198117092
TEST=emerge-dedede coreboot
Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com>
Change-Id: Ib65580babf7d21535df2bd8d33bb19261bebfe15
Reviewed-on: https://review.coreboot.org/c/coreboot/+/57204
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Reviewed-by: Henry Sun <henrysun@google.com>
Diffstat (limited to 'src/mainboard/google/dedede')
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/gpio.c | 2 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/ramstage.c | 11 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/drawcia/variant.c | 1 |
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(<e_reset_gpio, <e_enable_gpio); + + uint32_t board_version = board_id(); + + if (board_version <= 9) /* board version 9 is drawper EVT */ + update_lte_device(<e_reset_gpio, <e_enable_gpio); + else + update_lte_device(<e_new_reset_gpio, <e_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); } |