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
This commit is contained in:
parent
1571dc9637
commit
4fff74b69f
|
@ -41,6 +41,14 @@ void pmh7_dock_event_enable(int onoff)
|
||||||
pmh7_register_clear_bit(0x60, 3);
|
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)
|
void pmh7_register_set_bit(int reg, int bit)
|
||||||
{
|
{
|
||||||
char val;
|
char val;
|
||||||
|
|
|
@ -33,4 +33,5 @@ void pmh7_register_write(int reg, int val);
|
||||||
|
|
||||||
void pmh7_backlight_enable(int onoff);
|
void pmh7_backlight_enable(int onoff);
|
||||||
void pmh7_dock_event_enable(int onoff);
|
void pmh7_dock_event_enable(int onoff);
|
||||||
|
void pmh7_touchpad_enable(int onoff);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue