mb/google/brya/var/omnigul: Enable Cnvi BT Audio Offload feature

1. Enable Cnvi BT Audio Offload feature and also
   configure the virtual GPIO for CNVi Bluetooth I2S pads.
2. According to the SOC_GPIO_Table_20230116,
   Change GPIO GPP_D15, GPP_D16 to NC.

BUG=b:264834572
TEST=FW_NAME=omnigul emerge-brya coreboot

Change-Id: I4901c8cd660f2d47018e4cccdb67f666f0800423
Signed-off-by: Jamie chen <jamie_chen@compal.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/72035
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Dtrain Hsu <dtrain_hsu@compal.corp-partner.google.com>
This commit is contained in:
Jamie Chen 2023-01-17 13:13:30 +08:00 committed by Martin L Roth
parent 92b60d1036
commit cd792cd4a3
2 changed files with 23 additions and 2 deletions

View File

@ -105,9 +105,9 @@ static const struct pad_config override_gpio_table[] = {
/* D14 : ISH_UART0_TXD ==> NC */
PAD_NC_LOCK(GPP_D14, NONE, LOCK_CONFIG),
/* D15 : ISH_UART0_RTS# ==> GPP_D15 */
PAD_CFG_GPI_LOCK(GPP_D15, NONE, LOCK_CONFIG),
PAD_NC_LOCK(GPP_D15, NONE, LOCK_CONFIG),
/* D16 : ISH_UART0_CTS# ==> GPP_D16 */
PAD_CFG_GPI_LOCK(GPP_D16, NONE, LOCK_CONFIG),
PAD_NC_LOCK(GPP_D16, NONE, LOCK_CONFIG),
/* D17 : UART1_RXD ==> GPP_D17 */
PAD_CFG_GPI_LOCK(GPP_D17, NONE, LOCK_CONFIG),
/* D18 : UART1_TXD ==> NC */
@ -255,6 +255,24 @@ static const struct pad_config override_gpio_table[] = {
/* GPD10: SLP_S5# ==> SLP_S5_L */
/* GPD11: LANPHYC ==> GPD11 */
PAD_NC(GPD11, NONE),
/* Configure the virtual CNVi Bluetooth I2S GPIO pads */
/* BT_I2S_BCLK */
PAD_CFG_NF(GPP_VGPIO_30, NONE, DEEP, NF3),
/* BT_I2S_SYNC */
PAD_CFG_NF(GPP_VGPIO_31, NONE, DEEP, NF3),
/* BT_I2S_SDO */
PAD_CFG_NF(GPP_VGPIO_32, NONE, DEEP, NF3),
/* BT_I2S_SDI */
PAD_CFG_NF(GPP_VGPIO_33, NONE, DEEP, NF3),
/* SSP2_SCLK */
PAD_CFG_NF(GPP_VGPIO_34, NONE, DEEP, NF1),
/* SSP2_SFRM */
PAD_CFG_NF(GPP_VGPIO_35, NONE, DEEP, NF1),
/* SSP_TXD */
PAD_CFG_NF(GPP_VGPIO_36, NONE, DEEP, NF1),
/* SSP_RXD */
PAD_CFG_NF(GPP_VGPIO_37, NONE, DEEP, NF1),
};
/* Early pad configuration in bootblock */

View File

@ -44,6 +44,9 @@ chip soc/intel/alderlake
.configure_ext_fivr = 1,
}"
# Enable the Cnvi BT Audio Offload
register "cnvi_bt_audio_offload" = "1"
device domain 0 on
device ref i2c0 on
chip drivers/i2c/generic