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_CML_EC_DEFS_H |
| 11 | #define _EC_STARLABS_CML_EC_DEFS_H |
| 12 | |
| 13 | /* IT8987 chip ID byte values */ |
| 14 | #define ITE_CHIPID_VAL 0x8987 |
| 15 | |
| 16 | /* EC RAM offsets */ |
| 17 | #define ECRAM_KBL_TIMEOUT 0x07 |
| 18 | #define ECRAM_FN_CTRL_REVERSE 0x08 |
| 19 | #define ECRAM_FAN_MODE 0x09 |
Sean Rhodes | f26d7ea | 2022-08-23 11:23:12 +0100 | [diff] [blame] | 20 | #define ECRAM_MAX_CHARGE 0x1a |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 21 | #define ECRAM_TRACKPAD_STATE 0x14 |
| 22 | #define ECRAM_KBL_STATE 0x18 |
| 23 | #define ECRAM_KBL_BRIGHTNESS 0x19 |
| 24 | #define ECRAM_FN_LOCK_STATE 0x2c |
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 0x04 |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 27 | |
| 28 | #endif |