Ashish Kumar Mishra has uploaded this change for review.

View Change

mb/google/brox: Handle bluetooth enable on devices

On devices that don't have CNVi Bluetooth use BT_DISCRETE and
that have CNVi Bluetooth use BT_CNVI with enable CNVi
in FW_CONFIG flag.

Change-Id: Iba008682fcfa7ddc1ec400649c8742c721666f1d
Signed-off-by: Ashish Kumar Mishra <ashish.k.mishra@intel.com>
---
M src/mainboard/google/brox/variants/brox/overridetree.cb
M src/mainboard/google/brox/variants/brox/variant.c
2 files changed, 10 insertions(+), 0 deletions(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/64/80564/1
diff --git a/src/mainboard/google/brox/variants/brox/overridetree.cb b/src/mainboard/google/brox/variants/brox/overridetree.cb
index d13b276..f5ea390 100644
--- a/src/mainboard/google/brox/variants/brox/overridetree.cb
+++ b/src/mainboard/google/brox/variants/brox/overridetree.cb
@@ -21,6 +21,10 @@
option UFC_NONE 0
option UFC_OV2740 1
end
+ field BT 10 10
+ option BT_DISCRETE 0
+ option BT_CNVI 1
+ end
end

chip soc/intel/alderlake
diff --git a/src/mainboard/google/brox/variants/brox/variant.c b/src/mainboard/google/brox/variants/brox/variant.c
index 39162d5..e265158 100644
--- a/src/mainboard/google/brox/variants/brox/variant.c
+++ b/src/mainboard/google/brox/variants/brox/variant.c
@@ -8,6 +8,12 @@

void variant_update_soc_chip_config(struct soc_intel_alderlake_config *config)
{
+ if (fw_config_probe(FW_CONFIG(BT, BT_CNVI))) {
+ printk(BIOS_INFO, "cnvi bt enabled by fw_config\n");
+ config->cnvi_bt_core = true;
+ } else {
+ printk(BIOS_INFO, "discrete bt enabled\n");
+ }
}

const char *get_wifi_sar_cbfs_filename(void)

To view, visit change 80564. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Iba008682fcfa7ddc1ec400649c8742c721666f1d
Gerrit-Change-Number: 80564
Gerrit-PatchSet: 1
Gerrit-Owner: Ashish Kumar Mishra <ashish.k.mishra@intel.com>
Gerrit-MessageType: newchange