summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/pmh7
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2011-04-19 19:57:26 +0000
committerSven Schnelle <svens@stackframe.org>2011-04-19 19:57:26 +0000
commit4fff74b69f9c1ad7f835e6545a71631c34a4ab09 (patch)
treeea6734a0f366dbc59b453202c526e36d9aafd97d /src/ec/lenovo/pmh7
parent1571dc96372899c802e37e7d530acc2ba4848195 (diff)
downloadcoreboot-4fff74b69f9c1ad7f835e6545a71631c34a4ab09.tar.xz
Lenovo PMH7: add pmh7_touchpad_enable()
Signed-off-by: Sven Schnelle <svens@stackframe.org> Acked-by: Sven Schnelle <svens@stackframe.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6520 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/ec/lenovo/pmh7')
-rw-r--r--src/ec/lenovo/pmh7/pmh7.c8
-rw-r--r--src/ec/lenovo/pmh7/pmh7.h1
2 files changed, 9 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;
diff --git a/src/ec/lenovo/pmh7/pmh7.h b/src/ec/lenovo/pmh7/pmh7.h
index 588be70c4a..701013b396 100644
--- a/src/ec/lenovo/pmh7/pmh7.h
+++ b/src/ec/lenovo/pmh7/pmh7.h
@@ -33,4 +33,5 @@ void pmh7_register_write(int reg, int val);
void pmh7_backlight_enable(int onoff);
void pmh7_dock_event_enable(int onoff);
+void pmh7_touchpad_enable(int onoff);
#endif