Author: svens Date: Tue Apr 19 21:57:26 2011 New Revision: 6520 URL: https://tracker.coreboot.org/trac/coreboot/changeset/6520
Log: Lenovo PMH7: add pmh7_touchpad_enable()
Signed-off-by: Sven Schnelle svens@stackframe.org Acked-by: Sven Schnelle svens@stackframe.org
Modified: trunk/src/ec/lenovo/pmh7/pmh7.c trunk/src/ec/lenovo/pmh7/pmh7.h
Modified: trunk/src/ec/lenovo/pmh7/pmh7.c ============================================================================== --- trunk/src/ec/lenovo/pmh7/pmh7.c Tue Apr 19 21:34:25 2011 (r6519) +++ trunk/src/ec/lenovo/pmh7/pmh7.c Tue Apr 19 21:57:26 2011 (r6520) @@ -41,6 +41,14 @@ 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;
Modified: trunk/src/ec/lenovo/pmh7/pmh7.h ============================================================================== --- trunk/src/ec/lenovo/pmh7/pmh7.h Tue Apr 19 21:34:25 2011 (r6519) +++ trunk/src/ec/lenovo/pmh7/pmh7.h Tue Apr 19 21:57:26 2011 (r6520) @@ -33,4 +33,5 @@
void pmh7_backlight_enable(int onoff); void pmh7_dock_event_enable(int onoff); +void pmh7_touchpad_enable(int onoff); #endif