Sven Schnelle ([email protected]) just uploaded a new patch set to gerrit, 
which you can find at
http://review.coreboot.org/12

-gerrit
commit 49493f5ac0430f58d7666709d678d1345c6bb318
Author: Sven Schnelle <[email protected]>
Date:   Sun Jun 5 20:47:49 2011 +0200

    T60: add volume CMOS setting
    
    Change-Id: I5332c8fa52556db34dfb5e772bf544f0323e823d
    Signed-off-by: Sven Schnelle <[email protected]>

diff --git a/src/ec/lenovo/h8/h8.c b/src/ec/lenovo/h8/h8.c
index e2e5f99..ef308b1 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 = {
diff --git a/src/ec/lenovo/h8/h8.h b/src/ec/lenovo/h8/h8.h
index b5d8f01..c87ace4 100644
--- a/src/ec/lenovo/h8/h8.h
+++ b/src/ec/lenovo/h8/h8.h
@@ -70,6 +70,9 @@ int h8_ultrabay_device_present(void);
 
 #define H8_FAN_CONTROL			0x2f
 #define H8_FAN_CONTROL_AUTO		0x80
+
+#define H8_VOLUME_CONTROL		0x30
+#define H8_VOLUME_CONTROL_MUTE		0x40
 /* Embedded controller events */
 #define H8_EVENT_FN_F1	0x10
 #define H8_EVENT_FN_F2	0x11
diff --git a/src/mainboard/lenovo/t60/cmos.layout b/src/mainboard/lenovo/t60/cmos.layout
index 3144c1e..a946b4b 100644
--- a/src/mainboard/lenovo/t60/cmos.layout
+++ b/src/mainboard/lenovo/t60/cmos.layout
@@ -108,6 +108,7 @@ entries
 1052         4       r       0        C1DRT1
 
 1060         1       e       1        touchpad
+1064         8       h       0        volume
 # -----------------------------------------------------------------
 
 enumerations
diff --git a/src/mainboard/lenovo/x60/cmos.layout b/src/mainboard/lenovo/x60/cmos.layout
index c879078..1875e59 100644
--- a/src/mainboard/lenovo/x60/cmos.layout
+++ b/src/mainboard/lenovo/x60/cmos.layout
@@ -107,6 +107,7 @@ entries
 1048         4       r       0        C0DRT1
 1052         4       r       0        C1DRT1
 
+1064         8       h       0        volume
 # -----------------------------------------------------------------
 
 enumerations
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to