summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7/pmh7.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/lenovo/pmh7/pmh7.c')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ec/lenovo/pmh7/pmh7.c b/src/ec/lenovo/pmh7/pmh7.c
index 042a4edbf7..d536d74c75 100644
--- a/src/ec/lenovo/pmh7/pmh7.c
+++ b/src/ec/lenovo/pmh7/pmh7.c
@@ -41,6 +41,14 @@ void pmh7_dock_event_enable(int onoff)
pmh7_register_clear_bit(0x60, 3);
}
+
+void pmh7_touchpad_enable(int onoff)
+{
+ if (onoff)
+ pmh7_register_clear_bit(0x51, 2);
+ else
+ pmh7_register_set_bit(0x51, 2);
+}
void pmh7_register_set_bit(int reg, int bit)
{
char val;