X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fec%2Flenovo%2Fh8%2Fh8.c;h=ef308b1bace63ce48c2794b2ed567f189f07edda;hb=1b8068e24467d812752c71888c4880d3cac41cf8;hp=e2e5f998be818c1959de9e523718817a062bece5;hpb=cc5dd98c1b93281651781643dfbc7efc7f34a174;p=coreboot.git diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c index e2e5f998b..ef308b1ba 100644 --- a/src/ec/lenovo/h8/h8.c +++ b/src/ec/lenovo/h8/h8.c @@ -25,6 +25,7 @@ #include #include "h8.h" #include "chip.h" +#include void h8_trackpoint_enable(int on) { @@ -95,6 +96,8 @@ int h8_ultrabay_device_present(void) static void h8_enable(device_t dev) { struct ec_lenovo_h8_config *conf = dev->chip_info; + u8 val; + h8_log_ec_version(); ec_write(H8_CONFIG0, conf->config0); @@ -127,6 +130,8 @@ static void h8_enable(device_t dev) h8_wlan_enable(conf->wlan_enable); h8_trackpoint_enable(conf->trackpoint_enable); + if (!get_option(&val, "volume")) + ec_write(H8_VOLUME_CONTROL, val); } struct chip_operations ec_lenovo_h8_ops = {