diff options
Diffstat (limited to 'src/mainboard/google/brox/variants/jubilant/variant.c')
-rw-r--r-- | src/mainboard/google/brox/variants/jubilant/variant.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mainboard/google/brox/variants/jubilant/variant.c b/src/mainboard/google/brox/variants/jubilant/variant.c index 6cbfe19dfe..5b75380740 100644 --- a/src/mainboard/google/brox/variants/jubilant/variant.c +++ b/src/mainboard/google/brox/variants/jubilant/variant.c @@ -1,12 +1,18 @@ /* SPDX-License-Identifier: GPL-2.0-only */ #include <assert.h> +#include <bootstate.h> #include <baseboard/variants.h> #include <chip.h> #include <device/device.h> #include <fw_config.h> #include <sar.h> +#include "gpio.h" + +#define WWAN_RSL_L GPP_H23 +#define WWAN_FCPO_L GPP_F21 + void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config) { if (fw_config_probe(FW_CONFIG(WIFI_BT, WIFI_BT_CNVI)) || (!fw_config_is_provisioned())) { @@ -24,3 +30,12 @@ const char *get_wifi_sar_cbfs_filename(void) { return get_wifi_sar_fw_config_filename(FW_CONFIG_FIELD(WIFI_BT)); } + +static void wwan_out_of_reset(void *unused) +{ + if (fw_config_probe(FW_CONFIG(DB_USB, DB_1A_LTE))) { + gpio_set(WWAN_FCPO_L, 1); + gpio_set(WWAN_RSL_L, 1); + } +} +BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, wwan_out_of_reset, NULL); |