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

#include <assert.h>
#include <stdint.h>

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

#ifndef _EC_STARLABS_APL_EC_DEFS_H
#define _EC_STARLABS_APL_EC_DEFS_H

/* IT8987 chip ID byte values. */
#define ITE_CHIPID_VAL		0x8987

/* EC RAM offsets. */
#define ECRAM_TRACKPAD_STATE	0x14
#define ECRAM_KBL_STATE		0x18
#define ECRAM_KBL_BRIGHTNESS	0x19
#define ECRAM_KBL_TIMEOUT	0x1a
#define ECRAM_FN_LOCK_STATE	0x2c
#define ECRAM_FN_CTRL_REVERSE	0x2d
#define ECRAM_MAX_CHARGE	dead_code_t(uint8_t)
#define ECRAM_FAN_MODE		dead_code_t(uint8_t)
#define ECRAM_FAST_CHARGE	dead_code_t(uint8_t)
#define ECRAM_MIRROR_FLAG	0x04

#endif