blob: ff9d558e27550f3b618a39c87c1b1dea1a078dae [file] [log] [blame]
Angel Pons96d93d12020-04-05 13:22:23 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Stefan Reinauera7198b32012-12-11 16:00:47 -08002
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 Roth0cd338e2016-07-29 14:07:30 -060039 * Acer Hotkey Function - Make event D5h
40 * Acer Hotkey Function - Break event D6h
Stefan Reinauera7198b32012-12-11 16:00:47 -080041 */
42
43#ifndef __ACPI__
44extern void parrot_ec_init(void);
45u8 parrot_rev(void);
Stefan Reinauera7198b32012-12-11 16:00:47 -080046#endif
47
48#endif // PARROT_EC_H