[coreboot-gerrit] Change in coreboot[master]: ec/lenovo/h8: Add support for bluetooth on wifi

Patrick Rudolph (Code Review) gerrit at coreboot.org
Sun Sep 17 12:22:53 CEST 2017


Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/21578


Change subject: ec/lenovo/h8: Add support for bluetooth on wifi
......................................................................

ec/lenovo/h8: Add support for bluetooth on wifi

The EC does enable bluetooth on wifi cards and BDC at the same time.
Check the new Kconfig to support bluetooth on wifi in case no BDC
is installed and the BDC detection failes.

Change-Id: I23f14c937252a296dc543db49ec9e093e7e24604
Signed-off-by: Patrick Rudolph <siro at das-labor.org>
---
M src/ec/lenovo/h8/Kconfig
M src/ec/lenovo/h8/h8.c
2 files changed, 8 insertions(+), 1 deletion(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/78/21578/1

diff --git a/src/ec/lenovo/h8/Kconfig b/src/ec/lenovo/h8/Kconfig
index 190f4a9..701ec1e 100644
--- a/src/ec/lenovo/h8/Kconfig
+++ b/src/ec/lenovo/h8/Kconfig
@@ -21,6 +21,12 @@
 	help
 	  Flash all LEDs when encountered a fatal error.
 
+config H8_SUPPORT_BT_ON_WIFI
+	bool "Support Bluetooth on Wifi cards"
+	default n
+	help
+	  Don't care for BDC detection as wifi card does have Bluetooth."
+
 endif
 
 config H8_DOCK_EARLY_INIT
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 882ac02..b6e99f8 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -271,7 +271,8 @@
 	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();

-- 
To view, visit https://review.coreboot.org/21578
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I23f14c937252a296dc543db49ec9e093e7e24604
Gerrit-Change-Number: 21578
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <siro at das-labor.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20170917/464cc6ad/attachment.html>


More information about the coreboot-gerrit mailing list