summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec/starlabs/merlin/variants/cezanne/ecdefs.h')
-rw-r--r--src/ec/starlabs/merlin/variants/cezanne/ecdefs.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h b/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
new file mode 100644
index 0000000000..a75720e34e
--- /dev/null
+++ b/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+/*
+ * EC communication interface for ITE Embedded Controller
+ */
+
+#ifndef _EC_STARLABS_CEZANNE_EC_DEFS_H
+#define _EC_STARLABS_CEZANNE_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 0x19
+#define ECRAM_TRACKPAD_STATE 0x20
+#define ECRAM_FN_LOCK_STATE 0x21
+#define ECRAM_FN_CTRL_REVERSE 0x22
+#define ECRAM_MAX_CHARGE 0x23
+#define ECRAM_FAN_MODE 0x24
+
+#endif