Tony Huang | 8a7ea45 | 2022-06-08 14:36:32 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #ifndef MAINBOARD_EC_H |
| 4 | #define MAINBOARD_EC_H |
| 5 | |
| 6 | #include <baseboard/ec.h> |
| 7 | |
Tony Huang | 356f118 | 2022-06-16 14:37:19 +0800 | [diff] [blame^] | 8 | #undef MAINBOARD_EC_SCI_EVENTS |
| 9 | #define MAINBOARD_EC_SCI_EVENTS \ |
| 10 | (EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_CONNECTED) |\ |
| 11 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_AC_DISCONNECTED) |\ |
| 12 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_THERMAL_THRESHOLD) |\ |
| 13 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_START) |\ |
| 14 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_THROTTLE_STOP) |\ |
| 15 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_USB_CHARGER) |\ |
| 16 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_MKBP) |\ |
| 17 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_PD_MCU) |\ |
| 18 | EC_HOST_EVENT_MASK(EC_HOST_EVENT_MODE_CHANGE)) |
| 19 | |
| 20 | #undef MAINBOARD_EC_SMI_EVENTS |
| 21 | #define MAINBOARD_EC_SMI_EVENTS 0 |
| 22 | |
| 23 | /* EC can wake from S5 with power button */ |
| 24 | #undef MAINBOARD_EC_S5_WAKE_EVENTS |
| 25 | #define MAINBOARD_EC_S5_WAKE_EVENTS \ |
| 26 | (EC_HOST_EVENT_MASK(EC_HOST_EVENT_POWER_BUTTON)) |
| 27 | |
| 28 | /* EC can wake from S3 with power button */ |
| 29 | #undef MAINBOARD_EC_S3_WAKE_EVENTS |
| 30 | #define MAINBOARD_EC_S3_WAKE_EVENTS (MAINBOARD_EC_S5_WAKE_EVENTS) |
| 31 | |
| 32 | /* Disaable LID switch */ |
| 33 | #undef EC_ENABLE_LID_SWITCH |
| 34 | |
| 35 | #undef SIO_EC_ENABLE_PS2K /* Disable PS/2 Keyboard */ |
| 36 | |
Tony Huang | 8a7ea45 | 2022-06-08 14:36:32 +0800 | [diff] [blame] | 37 | #endif |