summaryrefslogtreecommitdiff
path: root/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
diff options
context:
space:
mode:
authorSean Rhodes <sean@starlabs.systems>2022-10-11 17:01:22 +0100
committerFelix Held <felix-coreboot@felixheld.de>2022-12-19 14:12:11 +0000
commit836881935fe8c3679f11008553f562b9f620f94e (patch)
tree58fa76f8c0a476e8096b22c17194910670a28564 /src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
parent6dc05a369e5dc8f098fe2cb8254d69066e06705b (diff)
ec/starlabs/merlin: Add EC related files for Cezanne laptops
Add EC memory layout and Q events for AMD Cezanne based boards, the "StarBook Mk VI" and "StarFighter Mk I", which both use the ITE 5570E. Change-Id: I87806b830b3d58a6ce3b89f45b5a07f4502a87f3 Signed-off-by: Sean Rhodes <sean@starlabs.systems> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68333 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/starlabs/merlin/variants/cezanne/ecdefs.h')
-rw-r--r--src/ec/starlabs/merlin/variants/cezanne/ecdefs.h28
1 files changed, 28 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..0c522cc845
--- /dev/null
+++ b/src/ec/starlabs/merlin/variants/cezanne/ecdefs.h
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <assert.h>
+#include <stdint.h>
+
+/*
+ * 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_TRACKPAD_STATE 0x14
+#define ECRAM_FN_CTRL_REVERSE 0x1a
+#define ECRAM_MAX_CHARGE 0x31
+#define ECRAM_FAN_MODE 0x32
+#define ECRAM_KBL_TIMEOUT 0x34
+#define ECRAM_KBL_STATE 0x35
+#define ECRAM_KBL_BRIGHTNESS 0x36
+#define ECRAM_FN_LOCK_STATE 0x70
+#define ECRAM_FAST_CHARGE dead_code_t(uint8_t)
+#define ECRAM_MIRROR_FLAG 0x05
+
+#endif