diff options
author | Tyler Wang <tyler.wang@quanta.corp-partner.google.com> | 2022-04-28 09:34:57 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-05-21 16:16:53 +0000 |
commit | 10fb9c7f363b22a87117d8f404d9f64d7e3c28e4 (patch) | |
tree | 7392f5b4dfa544980bb7e2ed239fdea6902908ef /src/mainboard/google/brya/variants/craask/gpio.c | |
parent | 03bdf47102db65bce3bd7bc766da01ef2cf504b4 (diff) |
mb/google/nissa/var/craask: Switch LTE-related GPIOs settings based on fw_config
If the LTE USB DB is connected, enable LTE-related settings.
Otherwise, disable LTE-related settings.
BUG=b:229938024, b:229048361, b:229040345
TEST=emerge-nissa coreboot
Signed-off-by: Tyler Wang <tyler.wang@quanta.corp-partner.google.com>
Change-Id: I37719cee48370a04534067aa64a3aa77e453948a
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63893
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Reka Norman <rekanorman@chromium.org>
Reviewed-by: Kangheui Won <khwon@chromium.org>
Diffstat (limited to 'src/mainboard/google/brya/variants/craask/gpio.c')
-rw-r--r-- | src/mainboard/google/brya/variants/craask/gpio.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mainboard/google/brya/variants/craask/gpio.c b/src/mainboard/google/brya/variants/craask/gpio.c index 93ae7760b5..2ca514f36b 100644 --- a/src/mainboard/google/brya/variants/craask/gpio.c +++ b/src/mainboard/google/brya/variants/craask/gpio.c @@ -5,6 +5,14 @@ #include <commonlib/helpers.h> #include <soc/gpio.h> +/* Pad configuration in ramstage for craask */ +static const struct pad_config override_gpio_table[] = { + /* D6 : WWAN_EN */ + PAD_CFG_GPO(GPP_D6, 1, DEEP), + /* F12 : WWAN_RST_L */ + PAD_CFG_GPO(GPP_F12, 1, DEEP), +}; + /* Early pad configuration in bootblock */ static const struct pad_config early_gpio_table[] = { /* F12 : GSXDOUT ==> WWAN_RST_L */ @@ -36,6 +44,12 @@ static const struct pad_config romstage_gpio_table[] = { PAD_CFG_GPO(GPP_H12, 1, DEEP), }; +const struct pad_config *variant_gpio_override_table(size_t *num) +{ + *num = ARRAY_SIZE(override_gpio_table); + return override_gpio_table; +} + const struct pad_config *variant_early_gpio_table(size_t *num) { *num = ARRAY_SIZE(early_gpio_table); |