blob: 772312cba4ce34f61001865f25ff6c1190601838 [file] [log] [blame]
Uwe Hermann539500e2011-02-02 23:56:15 +00001/*
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.
Uwe Hermann539500e2011-02-02 23:56:15 +000014 */
15
Sven Schnelle4a6c9d12011-02-01 10:44:26 +000016#ifndef EC_LENOVO_PMH7_H
17#define EC_LENOVO_PMH7_H
18
19#define EC_LENOVO_PMH7_INDEX 0x77
20
21#define EC_LENOVO_PMH7_BASE 0x15e0
22#define EC_LENOVO_PMH7_ADDR (EC_LENOVO_PMH7_BASE + 0x0c)
23#define EC_LENOVO_PMH7_DATA (EC_LENOVO_PMH7_BASE + 0x0e)
24
25void pmh7_register_set_bit(int reg, int bit);
26void pmh7_register_clear_bit(int reg, int bit);
27char pmh7_register_read(int reg);
28void pmh7_register_write(int reg, int val);
29
Sven Schnelle1fa61eb2011-04-11 19:43:50 +000030void pmh7_backlight_enable(int onoff);
Sven Schnelle1b9d2ee2011-04-17 12:54:32 +000031void pmh7_dock_event_enable(int onoff);
Sven Schnelle4fff74b2011-04-19 19:57:26 +000032void pmh7_touchpad_enable(int onoff);
Sven Schnellebf9e9302011-04-27 19:47:42 +000033void pmh7_ultrabay_power_enable(int onoff);
Vladimir Serbinenkoeada34f2014-01-11 04:22:35 +010034void pmh7_trackpoint_enable(int onoff);
Edward O'Callaghanb57fef92014-06-17 20:13:08 +100035
36#endif /* EC_LENOVO_PMH7_H */