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>
This commit is contained in:
Vladimir Serbinenko 2014-01-11 03:45:53 +01:00
parent add3f7fda2
commit 8e7e5254e4
6 changed files with 10 additions and 1 deletions

View File

@ -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);

View File

@ -110,6 +110,7 @@ entries
1060 1 e 1 touchpad
1061 1 e 1 bluetooth
1062 1 e 1 wwan
1063 1 e 1 wlan
1064 8 h 0 volume
1072 1 e 9 first_battery
1074 1 e 1 fn_ctrl_swap

View File

@ -8,6 +8,7 @@ volume=0x3
first_battery=Primary
bluetooth=Enable
wwan=Enable
wlan=Enable
touchpad=Enable
fn_ctrl_swap=Disable
sticky_fn=Disable

View File

@ -90,6 +90,7 @@ entries
412 1 e 1 bluetooth
413 1 e 1 wwan
414 1 e 1 touchpad
415 1 e 1 wlan
417 1 e 1 fn_ctrl_swap
418 1 e 1 sticky_fn
419 1 e 1 power_management_beeps

View File

@ -12,6 +12,7 @@ volume=0x3
tft_brightness=0xff
first_battery=Primary
bluetooth=Enable
wlan=Enable
fn_ctrl_swap=Disable
sticky_fn=Disable
power_management_beeps=Enable

View File

@ -112,6 +112,7 @@ entries
1080 1 e 9 first_battery
1081 1 e 1 bluetooth
1082 1 e 1 wwan
1083 1 e 1 wlan
1085 1 e 1 fn_ctrl_swap
1086 1 e 1 sticky_fn
1087 1 e 1 power_management_beeps