summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2013-11-13 21:53:23 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2013-12-19 08:58:16 +0100
commitf422a443d7c540a4cec17f6314553d8eb23f4478 (patch)
tree10dac592e31e9825ca0ed35c54b6a038572e1226
parent7d14e89c54e89901e7196e7a5da9583515576128 (diff)
downloadcoreboot-f422a443d7c540a4cec17f6314553d8eb23f4478.tar.xz
ec/lenovo/h8: Enable 3G modem
Just like bluetooth and wlan it need to be enabled in EC. Set the appropriate bit in EC if CMOS config says so. Change-Id: Ia48ca3201f013d3b4c4153f32ff536e06b6a2f6d Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4516 Tested-by: build bot (Jenkins) Reviewed-by: David Hendricks <dhendrix@chromium.org> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
-rw-r--r--src/ec/lenovo/h8/h8.c15
-rw-r--r--src/mainboard/lenovo/t60/cmos.layout1
-rw-r--r--src/mainboard/lenovo/x60/cmos.layout1
3 files changed, 17 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index ac77001229..4f9d2281ab 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -44,6 +44,7 @@ void h8_trackpoint_enable(int on)
}
+/* Controls radio-off pin in WLAN MiniPCIe slot. */
void h8_wlan_enable(int on)
{
if (on)
@@ -52,6 +53,15 @@ void h8_wlan_enable(int on)
ec_clr_bit(0x3a, 5);
}
+/* Controls radio-off pin in WWAN MiniPCIe slot. */
+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 +185,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 670c515892..a179752960 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 ef49d0ea57..45bb95abab 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