blob: 0a2654bf8fd8f3aa309568e56747f7cc15898000 [file] [log] [blame]
Sean Rhodes296994b2021-10-14 20:58:15 +01001/* SPDX-License-Identifier: GPL-2.0-only */
2
Sean Rhodes8de7c012022-07-31 17:35:28 +01003#include <assert.h>
4#include <stdint.h>
5
Sean Rhodes296994b2021-10-14 20:58:15 +01006/*
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 Rhodesf26d7ea2022-08-23 11:23:12 +010020#define ECRAM_MAX_CHARGE 0x1a
Sean Rhodes296994b2021-10-14 20:58:15 +010021#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 Rhodes8de7c012022-07-31 17:35:28 +010025#define ECRAM_FAST_CHARGE dead_code_t(uint8_t)
Sean Rhodes0579c602023-02-16 15:00:14 +000026#define ECRAM_MIRROR_FLAG 0x04
Sean Rhodes296994b2021-10-14 20:58:15 +010027
28#endif