aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/dedede/variants/boten/gpio.c
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@google.com>2020-10-23 16:54:11 -0600
committerPatrick Georgi <pgeorgi@google.com>2020-11-09 07:37:16 +0000
commit3d4513e7c8e27dbb9c6b941c4eb4144d38ff5cee (patch)
tree486c32d3fe4680304f373758c7f8fa345feeebe1 /src/mainboard/google/dedede/variants/boten/gpio.c
parent2313e54bf91761e61c777a699cf4047a5f4689cc (diff)
mb/google/dedede/var/boten: Add LTE power on/off sequence
LTE module used in boten has a specific power on/off sequence. GPIOs related to power sequnce are: * GPP_A10 - LTE_PWR_OFF_R_ODL * GPP_H17 - LTE_RESET_R_ODL 1. Power on: GPP_A10 -> 20ms -> GPP_H17 2. Power off: GPP_H17 -> 10ms -> GPP_A10 3. Warm reset: Power off -> 500ms -> Power on Configure the GPIOs based on these requirements. BUG=b:163100335 TEST=Build and boot Boten to OS. Ensure that the LTE module power sequence requirements are met. Change-Id: Ic6d5d21ce5267f147b332a4c9b01a29b3b8ccfb8 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/44588 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Peichao Wang <pwang12@lenovo.corp-partner.google.com> Reviewed-by: Marco Chen <marcochen@google.com> Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/dedede/variants/boten/gpio.c')
-rw-r--r--src/mainboard/google/dedede/variants/boten/gpio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/boten/gpio.c b/src/mainboard/google/dedede/variants/boten/gpio.c
index f889c7fd69..c27daa4854 100644
--- a/src/mainboard/google/dedede/variants/boten/gpio.c
+++ b/src/mainboard/google/dedede/variants/boten/gpio.c
@@ -7,6 +7,9 @@
/* Pad configuration in ramstage*/
static const struct pad_config gpio_table[] = {
+ /* A10 : WWAN_EN => LTE_PWR_OFF_ODL */
+ PAD_CFG_GPO(GPP_A10, 0, PLTRST),
+
/* C12 : AP_PEN_DET_ODL */
PAD_CFG_GPI_SCI(GPP_C12, NONE, DEEP, EDGE_SINGLE, NONE),
/* C18 : AP_I2C_EMR_SDA */
@@ -38,6 +41,8 @@ static const struct pad_config gpio_table[] = {
PAD_NC(GPP_H6, NONE),
/* H7 : AP_I2C_CAM_SCL */
PAD_NC(GPP_H7, NONE),
+ /* H17 : WWAN_RST_L => LTE_RESET_R_ODL */
+ PAD_CFG_GPO(GPP_H17, 0, PLTRST),
};
const struct pad_config *variant_override_gpio_table(size_t *num)