diff options
author | Teddy Shih <teddyshih@ami.corp-partner.google.com> | 2022-01-24 11:32:07 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-02-12 18:45:09 +0000 |
commit | eaee04b4a1a9f5f74696cbe3c298e5bef3a7cf21 (patch) | |
tree | edc7ae4a8c919bfd1336aec11eabe5ab2d41203c /src | |
parent | 507064b835df517723bdc2e06c47322c3d626bf4 (diff) |
mb/google/dedede/var/beadrix: Add LTE modem support
This change adds LTE modem for beadrix.
BUG=b:204882915
BRANCH=dedede
TEST=Build and boot beadrix, check with command modem status
Change-Id: I7acb88634478ff486810b2c3fc14d6739c3268e1
Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/61328
Reviewed-by: Henry Sun <henrysun@google.com>
Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/dedede/variants/beadrix/gpio.c | 9 | ||||
-rw-r--r-- | src/mainboard/google/dedede/variants/beadrix/overridetree.cb | 10 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/mainboard/google/dedede/variants/beadrix/gpio.c b/src/mainboard/google/dedede/variants/beadrix/gpio.c index 602864959c..0732355657 100644 --- a/src/mainboard/google/dedede/variants/beadrix/gpio.c +++ b/src/mainboard/google/dedede/variants/beadrix/gpio.c @@ -5,9 +5,14 @@ /* Pad configuration in ramstage */ static const struct pad_config gpio_table[] = { + /* A10 : WWAN_EN */ + PAD_CFG_GPO(GPP_A10, 1, PWROK), /* A11 : TOUCH_RPT_EN ==> NC */ PAD_NC(GPP_A11, NONE), + /* B7 : PCIE_CLKREQ2_N ==> WWAN_SAR_DETECT_ODL */ + PAD_CFG_GPO(GPP_B7, 1, DEEP), + /* C18 : AP_I2C_EMR_SDA ==> NC */ PAD_NC(GPP_C18, NONE), /* C19 : AP_I2C_EMR_SCL ==> NC */ @@ -15,6 +20,8 @@ static const struct pad_config gpio_table[] = { /* C22 : UART2_RTS_N ==> NC */ PAD_NC(GPP_C22, NONE), + /* D0 : WWAN_HOST_WAKE ==> WWAN_WDISABLE_L */ + PAD_CFG_GPO(GPP_D0, 1, DEEP), /* D12 : WCAM_RST_L ==> NC */ PAD_NC(GPP_D12, NONE), /* D13 : EN_PP2800_CAMERA ==> NC */ @@ -58,6 +65,8 @@ static const struct pad_config gpio_table[] = { /* H1 : EN_PP3300_SD_U ==> NC */ PAD_NC(GPP_H1, NONE), + /* H17 : WWAN_RST_L */ + PAD_CFG_GPO(GPP_H17, 0, PLTRST), }; const struct pad_config *variant_override_gpio_table(size_t *num) diff --git a/src/mainboard/google/dedede/variants/beadrix/overridetree.cb b/src/mainboard/google/dedede/variants/beadrix/overridetree.cb index 97e7743908..9c6d931f22 100644 --- a/src/mainboard/google/dedede/variants/beadrix/overridetree.cb +++ b/src/mainboard/google/dedede/variants/beadrix/overridetree.cb @@ -49,6 +49,16 @@ chip soc/intel/jasperlake register "type" = "UPC_TYPE_INTERNAL" device usb 2.5 on end end + chip drivers/usb/acpi + register "desc" = ""LTE"" + register "type" = "UPC_TYPE_INTERNAL" + 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 3.3 on end + end end end end # USB xHCI |