summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ec/lenovo/h8/Kconfig7
-rw-r--r--src/ec/lenovo/h8/h8.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/Kconfig b/src/ec/lenovo/h8/Kconfig
index 190f4a98a737..f9b0b1461215 100644
--- a/src/ec/lenovo/h8/Kconfig
+++ b/src/ec/lenovo/h8/Kconfig
@@ -21,6 +21,13 @@ config H8_FLASH_LEDS_ON_DEATH
help
Flash all LEDs when encountered a fatal error.
+config H8_SUPPORT_BT_ON_WIFI
+ bool "Support bluetooth on wifi cards"
+ default n
+ help
+ Disable BDC detection and assume bluetooth is installed. Required for
+ bluetooth on wifi cards, as it's not possible to detect it in coreboot.
+
endif
config H8_DOCK_EARLY_INIT
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 3442f68ff8a6..b034dba99a0a 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -272,7 +272,8 @@ static void h8_enable(struct device *dev)
if (get_option(&val, "volume") == CB_SUCCESS && !acpi_is_wakeup_s3())
ec_write(H8_VOLUME_CONTROL, val);
- val = h8_has_bdc(dev) && h8_bluetooth_nv_enable();
+ val = (IS_ENABLED(CONFIG_H8_SUPPORT_BT_ON_WIFI) || h8_has_bdc(dev)) &&
+ h8_bluetooth_nv_enable();
h8_bluetooth_enable(val);
val = h8_has_wwan(dev) && h8_wwan_nv_enable();