From 538bcf54c630088c84114001d100605b0d31a76b Mon Sep 17 00:00:00 2001 From: Mac Chiang Date: Thu, 29 Jun 2023 04:37:08 -0400 Subject: mb/google/brya: put Bluetooth VPGIOs overridable The BT VGPIOs pad config in variant of gpio.c won't be overwritten on board eventually because no matched gpios existed here. Put BT VGPIOs in gpio_table, ensure that these were able to be overwritten. The fix included crota and omnigul BT offload work successfully. BUG=b:264834572 TEST=test Bluetooth offload playback/capture in SCO profile. Change-Id: I62cecf26abd0411f7cbb0a56b8b8f0a25d370c69 Signed-off-by: Mac Chiang Reviewed-on: https://review.coreboot.org/c/coreboot/+/76247 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Derek Huang --- .../google/brya/variants/baseboard/brya/gpio.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/mainboard/google/brya') diff --git a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c index f3ab850df6..a4892d4d3a 100644 --- a/src/mainboard/google/brya/variants/baseboard/brya/gpio.c +++ b/src/mainboard/google/brya/variants/baseboard/brya/gpio.c @@ -380,6 +380,27 @@ static const struct pad_config gpio_table[] = { PAD_NC(GPP_VGPIO_19, NONE), PAD_NC(GPP_VGPIO_20, NONE), PAD_NC(GPP_VGPIO_21, NONE), + + /* Put option BT_I2S and SoC SSP2 pins in NC mode, ensure that + * all the relevant VGPIOs were able to be overritten via + * override_gpio_table of each variant of gpio.c + */ + /* BT_I2S_BCLK */ + PAD_NC(GPP_VGPIO_30, NONE), + /* BT_I2S_SYNC */ + PAD_NC(GPP_VGPIO_31, NONE), + /* BT_I2S_SDO */ + PAD_NC(GPP_VGPIO_32, NONE), + /* BT_I2S_SDI */ + PAD_NC(GPP_VGPIO_33, NONE), + /* SSP2_SCLK */ + PAD_NC(GPP_VGPIO_34, NONE), + /* SSP2_SFRM */ + PAD_NC(GPP_VGPIO_35, NONE), + /* SSP2_TXD */ + PAD_NC(GPP_VGPIO_36, NONE), + /* SSP2_RXD */ + PAD_NC(GPP_VGPIO_37, NONE), }; /* Early pad configuration in bootblock */ -- cgit v1.2.3