#include <stdlib.h>
#include "h8.h"
#include "chip.h"
+#include <pc80/mc146818rtc.h>
void h8_trackpoint_enable(int on)
{
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);
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 = {
#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