Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <assert.h> |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | /* |
| 7 | * EC communication interface for ITE Embedded Controller. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _EC_STARLABS_GLK_EC_DEFS_H |
| 11 | #define _EC_STARLABS_GLK_EC_DEFS_H |
| 12 | |
| 13 | /* IT8987 chip ID byte values. */ |
| 14 | #define ITE_CHIPID_VAL 0x8987 |
| 15 | |
| 16 | /* EC RAM offsets. */ |
| 17 | #define ECRAM_TRACKPAD_STATE 0x14 |
Sean Rhodes | 45041ca | 2022-02-17 14:24:03 +0000 | [diff] [blame] | 18 | #define ECRAM_KBL_STATE 0x19 |
| 19 | #define ECRAM_KBL_BRIGHTNESS 0x18 |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 20 | #define ECRAM_KBL_TIMEOUT 0x1a |
| 21 | #define ECRAM_FN_LOCK_STATE 0x2c |
| 22 | #define ECRAM_FN_CTRL_REVERSE 0x2d |
Sean Rhodes | 6c921c8 | 2022-05-06 10:01:33 +0100 | [diff] [blame] | 23 | #define ECRAM_MAX_CHARGE dead_code_t(uint8_t) |
Sean Rhodes | 296994b | 2021-10-14 20:58:15 +0100 | [diff] [blame] | 24 | #define ECRAM_FAN_MODE dead_code_t(uint8_t) |
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 |