Angel Pons | 96d93d1 | 2020-04-05 13:22:23 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Stefan Reinauer | a7198b3 | 2012-12-11 16:00:47 -0800 | [diff] [blame] | 2 | |
| 3 | #ifndef PARROT_EC_H |
| 4 | #define PARROT_EC_H |
| 5 | |
| 6 | #define EC_SCI_GPI 7 /* GPIO7 is EC_SCI# */ |
| 7 | #define EC_SMI_GPI 8 /* GPIO8 is EC_SMI# */ |
| 8 | #define EC_LID_GPI 15 /* GPIO15 is EC_LID_OUT# */ |
| 9 | |
| 10 | /* EC SMI sources TODO - make defines |
| 11 | * No event 80h |
| 12 | */ |
| 13 | #define EC_NO_EVENT 0x80 |
| 14 | /* |
| 15 | * DTS temperature update A0h |
| 16 | * Decrease brightness event A1h |
| 17 | * Increase brightness event A2h |
| 18 | * Lid open A5h |
| 19 | * Lid closed A6h |
| 20 | */ |
| 21 | #define EC_LID_CLOSE 0xA6 |
| 22 | /* Bluetooth wake up event A9h |
| 23 | * Display change (LCD , CRT) ACh |
| 24 | * Cpu fast event ADh |
| 25 | * Cpu slow event ADh |
| 26 | * Battery life in critical low state (LLB) B2h |
| 27 | */ |
| 28 | #define EC_BATTERY_CRITICAL 0xB2 |
| 29 | /* |
| 30 | * Battery life in low power state (LB) B3h |
| 31 | * Battery Plug-In B5h |
| 32 | * Docked in request BAh |
| 33 | * Undock request BBh |
| 34 | * Power button pressed C2h |
| 35 | * AC power plug-in C7h |
| 36 | * AC power plug-out C8h |
| 37 | * Modem Ring In CAh |
| 38 | * PME signal active CEh |
Martin Roth | 0cd338e | 2016-07-29 14:07:30 -0600 | [diff] [blame] | 39 | * Acer Hotkey Function - Make event D5h |
| 40 | * Acer Hotkey Function - Break event D6h |
Stefan Reinauer | a7198b3 | 2012-12-11 16:00:47 -0800 | [diff] [blame] | 41 | */ |
| 42 | |
| 43 | #ifndef __ACPI__ |
| 44 | extern void parrot_ec_init(void); |
| 45 | u8 parrot_rev(void); |
Stefan Reinauer | a7198b3 | 2012-12-11 16:00:47 -0800 | [diff] [blame] | 46 | #endif |
| 47 | |
| 48 | #endif // PARROT_EC_H |