From a47aa776a7545018496e39fbf86b2ce3339887bb Mon Sep 17 00:00:00 2001 From: Monika A Date: Tue, 18 Mar 2025 16:22:20 +0530 Subject: [PATCH] mb/google/brya/variants/trulo: Enable BT audio offload vGPIO configs are configured to enable SSP2 for BT audio offload. BUG=b:404741604 Test=Verified BT offload with HDA configuration Change-Id: Ibce828e32f4640cb234591392bb6ebf0662105fc Signed-off-by: Monika A Reviewed-on: https://review.coreboot.org/c/coreboot/+/86929 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- .../google/brya/variants/trulo/gpio.c | 18 ++++++++++++++++++ .../google/brya/variants/trulo/overridetree.cb | 3 +++ 2 files changed, 21 insertions(+) diff --git a/src/mainboard/google/brya/variants/trulo/gpio.c b/src/mainboard/google/brya/variants/trulo/gpio.c index fb805d6f28..c9852f592a 100644 --- a/src/mainboard/google/brya/variants/trulo/gpio.c +++ b/src/mainboard/google/brya/variants/trulo/gpio.c @@ -410,6 +410,24 @@ static const struct pad_config gpio_table[] = { PAD_NC(GPP_VGPIO_20, NONE), /* vUART0_RTS_B */ PAD_NC(GPP_VGPIO_21, 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 */ diff --git a/src/mainboard/google/brya/variants/trulo/overridetree.cb b/src/mainboard/google/brya/variants/trulo/overridetree.cb index 4c21173a76..3f0801e8bb 100644 --- a/src/mainboard/google/brya/variants/trulo/overridetree.cb +++ b/src/mainboard/google/brya/variants/trulo/overridetree.cb @@ -116,6 +116,9 @@ chip soc/intel/alderlake .vnn_icc_max_ma = 500, }" + # Enable CNVi BT Audio offload + register "cnvi_bt_audio_offload" = "1" + register "serial_io_i2c_mode" = "{ [PchSerialIoIndexI2C0] = PchSerialIoPci, [PchSerialIoIndexI2C1] = PchSerialIoPci,