summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-01-11 03:45:53 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-01-12 18:03:56 +0100
commit8e7e5254e4088d78f03b2a413721ba687e09b19c (patch)
tree5617c69595a31f8b0ce6fa7f9883819137bfd969 /src/ec
parentadd3f7fda27eb93636b473471d17f985f14cbb8d (diff)
ec/lenovo/h8: make wlan config a CMOS option
To stay in line with wwan and bluetooth. Change-Id: Iafe2dc97fc2aec5c2ad1834659b796a6b079c1bc Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/4652 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/lenovo/h8/h8.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index 0c80d49d82..48f0cba6be 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -211,7 +211,11 @@ static void h8_enable(device_t dev)
ec_write(0x1f, conf->eventf_enable);
ec_write(H8_FAN_CONTROL, H8_FAN_CONTROL_AUTO);
- h8_wlan_enable(1);
+
+ if (get_option(&val, "wlan") != CB_SUCCESS)
+ val = 1;
+ h8_wlan_enable(val);
+
h8_trackpoint_enable(conf->trackpoint_enable);
h8_usb_power_enable(1);