summaryrefslogtreecommitdiff
path: root/board/primus/ps2.h
blob: a82d6d566a23bccac11d00e2a8b8449ca252795e (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
29
30
31
/* Copyright 2022 The ChromiumOS Authors
 * 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 */