From aea05e51a7c4ed7d0eadd103e3dcb8ca6493b9bf Mon Sep 17 00:00:00 2001 From: Zhaoxiong Lv Date: Mon, 26 May 2025 09:48:38 +0800 Subject: [PATCH] mb/google/trulo/var/pujjocento: Enable WWAN function WWAN_FCPO == GPP_D6 WWAN_RST == GPP_E17 spec reuqest: 0 < toff <10ms LTE is controlled by bits 14 and 15 in fw_config, and P sensor and LTE modules exist at the same time, so we use the same bit to control whether to load the driver. BUG=b:419325064,b:417105553 TEST=Confirm the measured WWAN power sequence Change-Id: Ia978aef2cc721b65618ac78c13930447d1557797 Signed-off-by: Zhaoxiong Lv Reviewed-on: https://review.coreboot.org/c/coreboot/+/87841 Reviewed-by: Subrata Banik Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/mainboard/google/brya/Kconfig | 1 + .../brya/variants/pujjocento/include/variant/gpio.h | 3 ++- .../google/brya/variants/pujjocento/overridetree.cb | 10 +++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/mainboard/google/brya/Kconfig b/src/mainboard/google/brya/Kconfig index a02f06f48d..7da805504f 100644 --- a/src/mainboard/google/brya/Kconfig +++ b/src/mainboard/google/brya/Kconfig @@ -518,6 +518,7 @@ config BOARD_GOOGLE_PUJJOCENTO select BOARD_GOOGLE_BASEBOARD_TRULO select DRIVERS_I2C_SX9324 select DRIVERS_I2C_SX9324_SUPPORT_LEGACY_LINUX_DRIVER + select HAVE_WWAN_POWER_SEQUENCE select MAINBOARD_HAS_GOOGLE_STRAUSS_KEYBOARD select SOC_INTEL_COMMON_BLOCK_HDA_VERB select SOC_INTEL_TCSS_USE_PDC_PMC_USBC_MUX_CONFIGURATION diff --git a/src/mainboard/google/brya/variants/pujjocento/include/variant/gpio.h b/src/mainboard/google/brya/variants/pujjocento/include/variant/gpio.h index be080eb46e..66cfef0274 100644 --- a/src/mainboard/google/brya/variants/pujjocento/include/variant/gpio.h +++ b/src/mainboard/google/brya/variants/pujjocento/include/variant/gpio.h @@ -5,7 +5,8 @@ #include +#define WWAN_FCPO GPP_D6 /* FULL_CARD_POWER_OFF# */ #define WWAN_RST GPP_E17 -#define T2_OFF_MS 20 +#define T2_OFF_MS 5 /*spec request: 0 < t_off < 10ms*/ #define SLP_S0_HDMI_EN GPP_A7 #endif diff --git a/src/mainboard/google/brya/variants/pujjocento/overridetree.cb b/src/mainboard/google/brya/variants/pujjocento/overridetree.cb index 68a7526fb7..9c913d2ae4 100644 --- a/src/mainboard/google/brya/variants/pujjocento/overridetree.cb +++ b/src/mainboard/google/brya/variants/pujjocento/overridetree.cb @@ -13,6 +13,11 @@ fw_config option PDC_RTS_BYPASS 1 option PDC_TI_BYPASS 2 end + field LTE 14 15 + option LTE_ABSENT 0 + option LTE_PRESENT_101 1 + option LTE_PRESENT_135 2 + end end chip soc/intel/alderlake @@ -609,7 +614,10 @@ chip soc/intel/alderlake register "int_comp_resistor" = ""lowest"" register "input_precharge_resistor_ohms" = "4000" register "input_analog_gain" = "3" - device i2c 28 on end + device i2c 28 on + probe LTE LTE_PRESENT_101 + probe LTE LTE_PRESENT_135 + end end end device ref i2c5 on