blob: c17b02542b7ea0e701a07b33a6dc23275242caa5 [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_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 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 0x05
Sean Rhodes296994b2021-10-14 20:58:15 +010027
28#endif