[coreboot-gerrit] New patch to review for coreboot: ecb58e8 Enable 3G modem on lenovo

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Mon Dec 9 23:16:01 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/4516

-gerrit

commit ecb58e89d0dee41da9243ea2f35fd49610d40f47
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: Ia48ca3201f013d3b4c4153f32ff536e06b6a2f6d
    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 ac77001..4a86dc7 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -52,6 +52,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)
 {
 	char ecfw[17];
@@ -175,6 +183,11 @@ static void h8_enable(device_t dev)
 		val = 1;
 	h8_bluetooth_enable(val);
 
+	if (get_option(&val, "wwan") != CB_SUCCESS)
+		val = 1;
+
+	h8_wwan_enable(val);
+
 	if (get_option(&val, "first_battery") != CB_SUCCESS)
 		val = 1;
 
diff --git a/src/mainboard/lenovo/t60/cmos.layout b/src/mainboard/lenovo/t60/cmos.layout
index 670c515..a179752 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 ef49d0e..9314ae1 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