cpu/x86/smm/pci_resource_store: Store DEV/VEN ID
[coreboot2.git] / src / mainboard / google / parrot / ec.h
bloba77cf63e28ac7089c5b9dd9a877cc1f5d4812aa5
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef PARROT_EC_H
4 #define PARROT_EC_H
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# */
10 /* EC SMI sources TODO - make defines
11 * No event 80h
13 #define EC_NO_EVENT 0x80
15 * DTS temperature update A0h
16 * Decrease brightness event A1h
17 * Increase brightness event A2h
18 * Lid open A5h
19 * Lid closed A6h
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
28 #define EC_BATTERY_CRITICAL 0xB2
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
39 * Acer Hotkey Function - Make event D5h
40 * Acer Hotkey Function - Break event D6h
43 #ifndef __ACPI__
44 void parrot_ec_init(void);
45 u8 parrot_rev(void);
46 #endif
48 #endif // PARROT_EC_H