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:
Nicolas Boichat
2017-03-06 15:11:31 -08:00
committed by chrome-bot
parent 187d57f292
commit 5b8b06e976
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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) = {