summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Chen <jamie_chen@compal.corp-partner.google.com>2023-01-17 13:13:30 +0800
committerMartin L Roth <gaumless@gmail.com>2023-02-05 01:07:04 +0000
commitcd792cd4a3a9c39d3462d591fb89c196bdfdb0df (patch)
treeb1dc03e6546894739d45a3e589540c1f91491e36
parent92b60d1036cb82de142db7e9937847c1c65879ac (diff)
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>
-rw-r--r--src/mainboard/google/brya/variants/omnigul/gpio.c22
-rw-r--r--src/mainboard/google/brya/variants/omnigul/overridetree.cb3
2 files changed, 23 insertions, 2 deletions
diff --git a/src/mainboard/google/brya/variants/omnigul/gpio.c b/src/mainboard/google/brya/variants/omnigul/gpio.c
index f65f8ab353..704ef8fae7 100644
--- a/src/mainboard/google/brya/variants/omnigul/gpio.c
+++ b/src/mainboard/google/brya/variants/omnigul/gpio.c
@@ -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 */
diff --git a/src/mainboard/google/brya/variants/omnigul/overridetree.cb b/src/mainboard/google/brya/variants/omnigul/overridetree.cb
index 53f3feacd6..79e948d8dd 100644
--- a/src/mainboard/google/brya/variants/omnigul/overridetree.cb
+++ b/src/mainboard/google/brya/variants/omnigul/overridetree.cb
@@ -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