summaryrefslogtreecommitdiff
path: root/board/primus/ps2.h
diff options
context:
space:
mode:
authorScott Chao <scott_chao@wistron.corp-partner.google.com>2022-03-23 14:44:58 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-03-26 02:30:03 +0000
commitb81c17122e7e4c206d91446bcd7ec039397c3e08 (patch)
treebbfa36dd09d2159f6824d6b41ba383c42b09e768 /board/primus/ps2.h
parent81dff9c98a666237f2045b5d5e56cf63f98ff228 (diff)
downloadchrome-ec-stabilize-voshyr-14637.B-main.tar.gz
primus: send suspend mode to trackpointstabilize-voshyr-14637.B-main
BUG=b:226215983 BRANCH=none TEST=make -j BOARD=primus TEST=verify by EE Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I139c8a628f9c01ce299b7ec650839f67ca99a12e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3544753 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/primus/ps2.h')
-rw-r--r--board/primus/ps2.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/board/primus/ps2.h b/board/primus/ps2.h
new file mode 100644
index 0000000000..0943d5ba4b
--- /dev/null
+++ b/board/primus/ps2.h
@@ -0,0 +1,31 @@
+/* Copyright 2022 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef __CROS_EC_PRIMUS_PS2_H
+#define __CROS_EC_PRIMUS_PS2_H
+
+/* Primus board-specific PS2 configuration */
+/*
+ * Valid first byte responses to the "Read Secondary ID" (0xE1) command.
+ * 0x01 was the original IBM trackpoint, others implement very limited
+ * subset of trackpoint features.
+ */
+#define TP_READ_ID 0xE1 /* Sent for device identification */
+
+#define TP_COMMAND 0xE2 /* Commands start with this */
+
+/*
+ * Toggling Flag bits
+ */
+#define TP_TOGGLE 0x47 /* Toggle command */
+
+#define TP_VARIANT_ELAN 0x03
+#define TP_VARIANT_SYNAPTICS 0x06
+#define TP_TOGGLE_SOURCE_TAG 0x20
+#define TP_TOGGLE_BURST 0x28
+#define TP_TOGGLE_SNAPTICS_SLEEP 0x10
+#define TP_TOGGLE_ELAN_SLEEP 0x8
+
+#endif /* __CROS_EC_PRIMUS_PS2_H */