summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/h8.c
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-06-05 20:47:49 +0200
committerSven Schnelle <svens@stackframe.org>2011-06-09 10:05:46 +0200
commit1b8068e24467d812752c71888c4880d3cac41cf8 (patch)
tree8aa3ade449cb9ba3f61cbb19f9f78dd4ee872fcb /src/ec/lenovo/h8/h8.c
parentcc5dd98c1b93281651781643dfbc7efc7f34a174 (diff)
downloadcoreboot-1b8068e24467d812752c71888c4880d3cac41cf8.tar.xz
H8 EC: add volume CMOS setting
Change-Id: I5332c8fa52556db34dfb5e772bf544f0323e823d Signed-off-by: Sven Schnelle <svens@stackframe.org> Reviewed-on: http://review.coreboot.org/12 Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/ec/lenovo/h8/h8.c')
-rw-r--r--src/ec/lenovo/h8/h8.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index e2e5f998be..ef308b1bac 100644
--- a/src/ec/lenovo/h8/h8.c
+++ b/src/ec/lenovo/h8/h8.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include "h8.h"
#include "chip.h"
+#include <pc80/mc146818rtc.h>
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 = {