Lenovo PMH7: add pmh7_touchpad_enable()
[coreboot.git] / src / ec / lenovo / pmh7 / pmh7.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
18  */
19
20 #ifndef EC_LENOVO_PMH7_H
21 #define EC_LENOVO_PMH7_H
22
23 #define EC_LENOVO_PMH7_INDEX 0x77
24
25 #define EC_LENOVO_PMH7_BASE 0x15e0
26 #define EC_LENOVO_PMH7_ADDR (EC_LENOVO_PMH7_BASE + 0x0c)
27 #define EC_LENOVO_PMH7_DATA (EC_LENOVO_PMH7_BASE + 0x0e)
28
29 void pmh7_register_set_bit(int reg, int bit);
30 void pmh7_register_clear_bit(int reg, int bit);
31 char pmh7_register_read(int reg);
32 void pmh7_register_write(int reg, int val);
33
34 void pmh7_backlight_enable(int onoff);
35 void pmh7_dock_event_enable(int onoff);
36 void pmh7_touchpad_enable(int onoff);
37 #endif