Uwe Hermann | 539500e | 2011-02-02 23:56:15 +0000 | [diff] [blame] | 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. |
Uwe Hermann | 539500e | 2011-02-02 23:56:15 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
Sven Schnelle | 4a6c9d1 | 2011-02-01 10:44:26 +0000 | [diff] [blame] | 16 | #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 | |
| 25 | void pmh7_register_set_bit(int reg, int bit); |
| 26 | void pmh7_register_clear_bit(int reg, int bit); |
| 27 | char pmh7_register_read(int reg); |
| 28 | void pmh7_register_write(int reg, int val); |
| 29 | |
Sven Schnelle | 1fa61eb | 2011-04-11 19:43:50 +0000 | [diff] [blame] | 30 | void pmh7_backlight_enable(int onoff); |
Sven Schnelle | 1b9d2ee | 2011-04-17 12:54:32 +0000 | [diff] [blame] | 31 | void pmh7_dock_event_enable(int onoff); |
Sven Schnelle | 4fff74b | 2011-04-19 19:57:26 +0000 | [diff] [blame] | 32 | void pmh7_touchpad_enable(int onoff); |
Sven Schnelle | bf9e930 | 2011-04-27 19:47:42 +0000 | [diff] [blame] | 33 | void pmh7_ultrabay_power_enable(int onoff); |
Vladimir Serbinenko | eada34f | 2014-01-11 04:22:35 +0100 | [diff] [blame] | 34 | void pmh7_trackpoint_enable(int onoff); |
Edward O'Callaghan | b57fef9 | 2014-06-17 20:13:08 +1000 | [diff] [blame] | 35 | |
| 36 | #endif /* EC_LENOVO_PMH7_H */ |