aboutsummaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/h8.c
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2017-09-17 12:17:13 +0200
committerMartin Roth <martinroth@google.com>2018-01-12 18:19:34 +0000
commit7c2a6f984a19cab6f2c51e5dce270562a8a27d47 (patch)
tree60ea7fad803d768292db88ededa51553e50c986c /src/ec/lenovo/h8/h8.c
parent09f8a834b3a57bb35021c0f1705a2583135edb7e (diff)
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 fails. Change-Id: I23f14c937252a296dc543db49ec9e093e7e24604 Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/21578 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/ec/lenovo/h8/h8.c')
-rw-r--r--src/ec/lenovo/h8/h8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 3442f68ff8..b034dba99a 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();