Lines Matching +full:trackpad +full:- +full:3 +full:x
2 * Cypress APA trackpad with I2C interface
6 * Copyright (C) 2014-2015 Cypress Semiconductor, Inc.
18 /* APA trackpad firmware generation number. */
20 #define CYAPA_GEN3 0x03 /* support MT-protocol B with tracking ID. */
21 #define CYAPA_GEN5 0x05 /* support TrueTouch GEN5 trackpad device. */
22 #define CYAPA_GEN6 0x06 /* support TrueTouch GEN6 trackpad device. */
24 #define CYAPA_NAME "Cypress APA Trackpad (cyapa)"
36 /* Commands for read/write registers of Cypress trackpad */
56 #define BL_STATUS_SIZE 3 /* Length of gen3 bootloader status registers */
63 * bit 6 - 4: Reserved
64 * bit 3 - 2: Power status
65 * bit 1 - 0: Device status
76 * bit 7 - 4: Number of touched finger
77 * bit 3: Valid data
91 * Write-only command file register used to issue commands and
102 * bit 6 - 5: Reserved
104 * bit 3 - 2: Reserved
125 * bit 3: Flash protection error
127 * bit 1 - 0: Reserved
140 #define CAPABILITY_BTN_SHIFT 3
141 #define CAPABILITY_LEFT_BTN_MASK (0x01 << 3)
219 #define PIP_RESP_RSVD_OFFSET 3
236 /* Variables to record latest gen5 trackpad power states. */
239 #define PIP_DEV_SET_PWR_STATE(cyapa, s) ((cyapa)->dev_pwr_mode = (s))
240 #define PIP_DEV_GET_PWR_STATE(cyapa) ((cyapa)->dev_pwr_mode)
241 #define PIP_DEV_SET_SLEEP_TIME(cyapa, t) ((cyapa)->dev_sleep_time = (t))
242 #define PIP_DEV_GET_SLEEP_TIME(cyapa) ((cyapa)->dev_sleep_time)
244 (((cyapa)->dev_sleep_time) == UNINIT_SLEEP_TIME)
364 /* Used in ttsp and truetouch based trackpad devices. */
365 u8 x_origin; /* X Axis Origin: 0 = left side; 1 = right side. */
367 int electrodes_x; /* Number of electrodes on the X Axis*/