2 * This file is part of the coreboot project.
4 * Copyright (C) 2011 Sven Schnelle <svens@stackframe.org>
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.
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.
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
20 #ifndef EC_LENOVO_PMH7_H
21 #define EC_LENOVO_PMH7_H
23 #define EC_LENOVO_PMH7_INDEX 0x77
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)
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);
34 void pmh7_backlight_enable(int onoff);
35 void pmh7_dock_event_enable(int onoff);
36 void pmh7_touchpad_enable(int onoff);
37 void pmh7_ultrabay_power_enable(int onoff);