[coreboot] New patch to review for coreboot: 6e8ae90 X60/T60: Add option to enable/disable bluetooth
Sven Schnelle (svens@stackframe.org)
gerrit at coreboot.org
Tue Jan 31 17:44:07 CET 2012
Sven Schnelle (svens at stackframe.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/598
-gerrit
commit 6e8ae90bbb68e1caa9e0c55e30bc66c5e2fe2007
Author: Sven Schnelle <svens at stackframe.org>
Date: Tue Jan 31 17:41:12 2012 +0100
X60/T60: Add option to enable/disable bluetooth
Change-Id: I9761a8a9a7cc708fe95169cb8b79b413b97ee523
Signed-off-by: Sven Schnelle <svens at stackframe.org>
---
src/ec/lenovo/h8/h8.c | 11 +++++++++++
src/mainboard/lenovo/t60/cmos.layout | 1 +
src/mainboard/lenovo/x60/cmos.layout | 1 +
3 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index f20cd38..ecd34b2 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -27,6 +27,14 @@
#include "chip.h"
#include <pc80/mc146818rtc.h>
+static void h8_bluetooth_enable(int on)
+{
+ if (on)
+ ec_set_bit(0x3a, 4);
+ else
+ ec_clr_bit(0x3a, 4);
+}
+
void h8_trackpoint_enable(int on)
{
ec_write(H8_TRACKPOINT_CTRL,
@@ -143,6 +151,9 @@ static void h8_enable(device_t dev)
ec_write(H8_VOLUME_CONTROL, val);
+ if (!get_option(&val, "bluetooth"))
+ h8_bluetooth_enable(val);
+
if (!get_option(&val, "first_battery")) {
tmp = ec_read(H8_CONFIG3);
tmp &= ~(1 << 4);
diff --git a/src/mainboard/lenovo/t60/cmos.layout b/src/mainboard/lenovo/t60/cmos.layout
index 8d9dce4..7539b60 100644
--- a/src/mainboard/lenovo/t60/cmos.layout
+++ b/src/mainboard/lenovo/t60/cmos.layout
@@ -108,6 +108,7 @@ entries
1052 4 r 0 C1DRT1
1060 1 e 1 touchpad
+1061 1 e 1 bluetooth
1064 8 h 0 volume
1072 1 e 9 first_battery
# -----------------------------------------------------------------
diff --git a/src/mainboard/lenovo/x60/cmos.layout b/src/mainboard/lenovo/x60/cmos.layout
index cae70cb..ab51a84 100644
--- a/src/mainboard/lenovo/x60/cmos.layout
+++ b/src/mainboard/lenovo/x60/cmos.layout
@@ -110,6 +110,7 @@ entries
1064 8 h 0 volume
1072 8 h 0 tft_brightness
1080 1 e 9 first_battery
+1081 1 e 1 bluetooth
# -----------------------------------------------------------------
enumerations
More information about the coreboot
mailing list