[coreboot-gerrit] Patch set updated for coreboot: 9a70d81 Enable 3G modem on lenovo
Vladimir Serbinenko (phcoder@gmail.com)
gerrit at coreboot.org
Tue Nov 19 17:44:32 CET 2013
Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4056
-gerrit
commit 9a70d8108944fb3f655540121cdc067cb7cdba91
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date: Wed Nov 13 21:53:23 2013 +0100
Enable 3G modem on lenovo
Just like bluetooth and wlan it need to be enabled in EC.
Do it analogously to above mentioned
Change-Id: Ia4bfeb6fb05c6f61a47340e4213e72df5dae179b
Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
src/ec/lenovo/h8/h8.c | 13 +++++++++++++
src/mainboard/lenovo/t60/cmos.layout | 1 +
src/mainboard/lenovo/x60/cmos.layout | 1 +
3 files changed, 15 insertions(+)
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index ca34fb6..5c2f84f 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -50,6 +50,14 @@ void h8_wlan_enable(int on)
ec_clr_bit(0x3a, 5);
}
+static void h8_wwan_enable(int on)
+{
+ if (on)
+ ec_set_bit(0x3a, 6);
+ else
+ ec_clr_bit(0x3a, 6);
+}
+
static void h8_log_ec_version(void)
{
unsigned char ecfw[9], c;
@@ -154,6 +162,11 @@ static void h8_enable(device_t dev)
val = 1;
h8_bluetooth_enable(val);
+ if (get_option(&val, "wwan"))
+ val = 1;
+
+ h8_wwan_enable(val);
+
if (get_option(&val, "first_battery"))
val = 1;
diff --git a/src/mainboard/lenovo/t60/cmos.layout b/src/mainboard/lenovo/t60/cmos.layout
index 7539b60..81dbe11 100644
--- a/src/mainboard/lenovo/t60/cmos.layout
+++ b/src/mainboard/lenovo/t60/cmos.layout
@@ -109,6 +109,7 @@ entries
1060 1 e 1 touchpad
1061 1 e 1 bluetooth
+1062 1 e 1 wwan
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 ab51a84..ca9e191 100644
--- a/src/mainboard/lenovo/x60/cmos.layout
+++ b/src/mainboard/lenovo/x60/cmos.layout
@@ -111,6 +111,7 @@ entries
1072 8 h 0 tft_brightness
1080 1 e 9 first_battery
1081 1 e 1 bluetooth
+1082 1 e 1 wwan
# -----------------------------------------------------------------
enumerations
More information about the coreboot-gerrit
mailing list