mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
hammer: Switch trackpad I2C to 400 kHz, decrease EP interval to 2ms
These 2 changes improve the measured touchpad drag latency. BRANCH=none BUG=b:35587172 TEST=Measure improved latency with WALT. TEST=Using CONFIG_TRACE, look at output. Change-Id: Ibeb90f6f92423e82100f17df79b2f20d90abfeb7 Reviewed-on: https://chromium-review.googlesource.com/450980 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Charlie Mooney <charliemooney@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
187d57f292
commit
5b8b06e976
@@ -44,7 +44,7 @@ BUILD_ASSERT(ARRAY_SIZE(usb_strings) == USB_STR_COUNT);
|
||||
|
||||
/* I2C ports */
|
||||
const struct i2c_port_t i2c_ports[] = {
|
||||
{"master", I2C_PORT_MASTER, 100,
|
||||
{"master", I2C_PORT_MASTER, 400,
|
||||
GPIO_MASTER_I2C_SCL, GPIO_MASTER_I2C_SDA},
|
||||
};
|
||||
const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports);
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
* Touchpad EP interval: Make sure this value is smaller than the typical
|
||||
* interrupt interval from the trackpad.
|
||||
*/
|
||||
#define HID_TOUCHPAD_EP_INTERVAL_MS 8 /* ms */
|
||||
#define HID_TOUCHPAD_EP_INTERVAL_MS 2 /* ms */
|
||||
|
||||
/* HID descriptors */
|
||||
const struct usb_interface_descriptor USB_IFACE_DESC(USB_IFACE_HID_TOUCHPAD) = {
|
||||
|
||||
Reference in New Issue
Block a user