Vladimir Serbinenko (phcoder@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4056
-gerrit
commit 57b8cf5b5907f9a7315ca080caa1390aba4cc542 Author: Vladimir Serbinenko phcoder@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@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 5b519f8..1e21d7f 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -55,6 +55,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; @@ -159,6 +167,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 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 8d18525..2daa5a2 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