summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/variants/tgl/ecdefs.h
blob: 3441bc073f652eb4b88660de4975385c60add573 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0-only */

/*
 * EC communication interface for ITE Embedded Controller
 */

#ifndef _EC_STARLABS_TGL_EC_DEFS_H
#define _EC_STARLABS_TGL_EC_DEFS_H

/* IT5570 chip ID byte values */
#define ITE_CHIPID_VAL		0x5570

/* EC RAM offsets */
#define ECRAM_KBL_BRIGHTNESS	0x09
#define ECRAM_KBL_TIMEOUT	0x10
#define ECRAM_KBL_STATE		0x0a
#define ECRAM_TRACKPAD_STATE	0x0c
#define ECRAM_FN_LOCK_STATE	0x0f
#define ECRAM_FN_CTRL_REVERSE	0x17
#define ECRAM_MAX_CHARGE	0x1a
#define ECRAM_FAN_MODE		0x1b

#endif