aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c
diff options
context:
space:
mode:
authorBora Guvendik <bora.guvendik@intel.com>2020-08-28 10:50:47 -0700
committerPatrick Georgi <pgeorgi@google.com>2020-10-14 05:36:57 +0000
commit7377cda6089210068b9d163083e6084439aa3e88 (patch)
tree40a80d14ab3d0ca3a51e93205896b1920b6fa5cc /src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c
parentd1095c7ed79d7bed958c6e446fe4ea2def5c2102 (diff)
mb/intel/tglrvp: Enable Pcie WWAN m.2
Enables Pcie M.2 support for WWAN and disable M.2 USB. RP4 is already on and PcieRpEnable[3] is enabled. Clock source 2 is already configured. Added missing gpio configuration. BUG=none TEST=Boot to OS, check WWAN functionality Change-Id: Ie9b7915062b2ef65d881d478e64322c0b8765614 Signed-off-by: Bora Guvendik <bora.guvendik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45828 Reviewed-by: Wonkyu Kim <wonkyu.kim@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c')
-rw-r--r--src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c b/src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c
index 303350be27..77da5cce5c 100644
--- a/src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c
+++ b/src/mainboard/intel/tglrvp/variants/tglrvp_up4/gpio.c
@@ -100,6 +100,15 @@ static const struct pad_config early_gpio_table[] = {
PAD_CFG_NF(GPP_B21, NONE, DEEP, NF1),
/* B22 : GSPI1_MOSI */
PAD_CFG_NF(GPP_B22, NONE, DEEP, NF1),
+
+ /* WWAN */
+ PAD_CFG_GPO(GPP_D11, 1, DEEP), /* WWAN_PWREN */
+ PAD_CFG_NF(GPP_D7, NONE, DEEP, NF1), /* CLK SRC 2 */
+ PAD_CFG_GPI_SCI(GPP_C9, NONE, DEEP, LEVEL, INVERT), /* WWAN_WAKE_N */
+ PAD_CFG_GPO(GPP_C11, 1, DEEP), /* FULL_CARD_POWER_OFF_N */
+ PAD_CFG_GPO(GPP_C10, 1, DEEP), /* WWAN_RST_N */
+ PAD_CFG_GPO(GPP_B17, 1, DEEP), /* WWAN_PERST_N */
+ PAD_CFG_GPO(GPP_D15, 1, DEEP), /* WWAN_DISABLE_N */
};
const struct pad_config *variant_gpio_table(size_t *num)