summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-03-22 11:34:03 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-20 05:31:10 -0700
commite550cc1d2a680882f69f09ed948320bfb4017761 (patch)
tree3864818ee27a41639d40d5fdabc763dfa2e5c70b
parentee00a00061937817e3e4f5f95d117f92e4e1721f (diff)
downloadchrome-ec-e550cc1d2a680882f69f09ed948320bfb4017761.tar.gz
whiskers: enable heatmap interface
Enable heatmap interface to send heat-map to host. BRANCH=whiskers BUG=b:70482333 TEST=make BOARD=whiskers TEST=tested on whiskers, get frame stream through USB interface Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I6721256d0008dda301f1b3027acbed1cf2fba9b4 Reviewed-on: https://chromium-review.googlesource.com/974604 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
-rw-r--r--board/hammer/board.h24
1 files changed, 20 insertions, 4 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 6f1b00558a..1bd9354c0e 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -117,6 +117,11 @@
/* Replaced at runtime (board_read_serial) by chip unique-id-based number. */
#define DEFAULT_SERIALNO ""
+#if defined(BOARD_WHISKERS) && defined(SECTION_IS_RW)
+/* Enable to send heatmap to AP */
+#define CONFIG_USB_ISOCHRONOUS
+#endif /* !(BOARD_WHISKERS && SECTION_IS_RW) */
+
/* USB interface indexes (use define rather than enum to expand them) */
#ifdef SECTION_IS_RW
#define USB_IFACE_HID_KEYBOARD 0
@@ -124,11 +129,16 @@
#define USB_IFACE_HID_TOUCHPAD 2
/* Can be either I2C or SPI passthrough, depending on the board. */
#define USB_IFACE_I2C_SPI 3
+#if defined(BOARD_WHISKERS) && defined(CONFIG_USB_ISOCHRONOUS)
+#define USB_IFACE_ST_TOUCHPAD 4
+#define USB_IFACE_COUNT 5
+#else /* !(BOARD_WHISKERS && CONFIG_USB_ISOCHRONOUS) */
#define USB_IFACE_COUNT 4
-#else
+#endif /* BOARD_WHISKERS && CONFIG_USB_ISOCHRONOUS */
+#else /* !SECTION_IS_RW */
#define USB_IFACE_UPDATE 0
#define USB_IFACE_COUNT 1
-#endif
+#endif /* SECTION_IS_RW */
/* USB endpoint indexes (use define rather than enum to expand them) */
#define USB_EP_CONTROL 0
@@ -138,10 +148,16 @@
#define USB_EP_HID_TOUCHPAD 3
/* Can be either I2C or SPI passthrough, depending on the board. */
#define USB_EP_I2C_SPI 4
+#if defined(BOARD_WHISKERS) && defined(CONFIG_USB_ISOCHRONOUS)
+#define USB_EP_ST_TOUCHPAD 5
+#define USB_EP_ST_TOUCHPAD_INT 6
+#define USB_EP_COUNT 7
+#else /* !(BOARD_WHISKERS && CONFIG_USB_ISOCHRONOUS) */
#define USB_EP_COUNT 5
-#else
+#endif /* BOARD_WHISKERS && CONFIG_USB_ISOCHRONOUS */
+#else /* !SECTION_IS_RW */
#define USB_EP_COUNT 2
-#endif
+#endif /* SECTION_IS_RW */
/* Optional features */
#define CONFIG_BOARD_PRE_INIT