Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Sean Rhodes | 8de7c01 | 2022-07-31 17:35:28 +0100 | [diff] [blame] | 3 | #include <assert.h> |
| 4 | #include <stdint.h> |
| 5 | |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 6 | /* |
| 7 | * EC communication interface for ITE Embedded Controller |
| 8 | */ |
| 9 | |
| 10 | #ifndef _EC_STARLABS_TGL_EC_DEFS_H |
| 11 | #define _EC_STARLABS_TGL_EC_DEFS_H |
| 12 | |
| 13 | /* IT5570 chip ID byte values */ |
| 14 | #define ITE_CHIPID_VAL 0x5570 |
| 15 | |
| 16 | /* EC RAM offsets */ |
| 17 | #define ECRAM_KBL_BRIGHTNESS 0x09 |
| 18 | #define ECRAM_KBL_TIMEOUT 0x10 |
| 19 | #define ECRAM_KBL_STATE 0x0a |
| 20 | #define ECRAM_TRACKPAD_STATE 0x0c |
| 21 | #define ECRAM_FN_LOCK_STATE 0x0f |
| 22 | #define ECRAM_FN_CTRL_REVERSE 0x17 |
| 23 | #define ECRAM_MAX_CHARGE 0x1a |
| 24 | #define ECRAM_FAN_MODE 0x1b |
Sean Rhodes | 8de7c01 | 2022-07-31 17:35:28 +0100 | [diff] [blame] | 25 | #define ECRAM_FAST_CHARGE dead_code_t(uint8_t) |
Sean Rhodes | 0579c60 | 2023-02-16 15:00:14 +0000 | [diff] [blame^] | 26 | #define ECRAM_MIRROR_FLAG 0x05 |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 27 | |
| 28 | #endif |