payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git] / src / mainboard / intel / kunimitsu / ec.h
blobbd95661ce5f732c6f6c9b16764926d925046e5ac
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef MAINBOARD_EC_H
4 #define MAINBOARD_EC_H
6 #include <ec/ec.h>
7 #include <ec/google/chromeec/ec_commands.h>
9 #define MAINBOARD_EC_SCI_EVENTS \
10 (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED) |\
11 EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
12 EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) |\
13 EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) |\
14 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_LOW) |\
15 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_CRITICAL) |\
16 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY) |\
17 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_STATUS) |\
18 EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_THRESHOLD) |\
19 EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_START) |\
20 EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_STOP) |\
21 EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_CHARGER) |\
22 EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU) |\
23 EC_HOST_EVENT_MASK(EC_HOST_EVENT_MKBP))
25 #define MAINBOARD_EC_SMI_EVENTS \
26 (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_CLOSED))
28 /* EC can wake from S5 with lid or power button */
29 #define MAINBOARD_EC_S5_WAKE_EVENTS \
30 (EC_HOST_EVENT_MASK(EC_HOST_EVENT_LID_OPEN) |\
31 EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON))
33 /* EC can wake from S3 with lid or power button or key press */
34 #define MAINBOARD_EC_S3_WAKE_EVENTS \
35 (MAINBOARD_EC_S5_WAKE_EVENTS |\
36 EC_HOST_EVENT_MASK(EC_HOST_EVENT_KEY_PRESSED))
38 /* Log EC wake events plus EC shutdown events */
39 #define MAINBOARD_EC_LOG_EVENTS \
40 (EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_SHUTDOWN) |\
41 EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_SHUTDOWN)|\
42 EC_HOST_EVENT_MASK(EC_HOST_EVENT_PANIC))
44 #endif