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>
This commit is contained in:
Wisley Chen 2021-08-27 16:55:08 +06:00 committed by Felix Held
parent 01a4dde265
commit cfed6263ab
3 changed files with 13 additions and 1 deletions

View File

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

View File

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

View File

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