summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/hammer/variants.h12
l---------board/zed1
-rwxr-xr-xutil/flash_ec1
3 files changed, 14 insertions, 0 deletions
diff --git a/board/hammer/variants.h b/board/hammer/variants.h
index 7bf0b02e07..7829e3a34a 100644
--- a/board/hammer/variants.h
+++ b/board/hammer/variants.h
@@ -27,6 +27,9 @@
#define CONFIG_USB_PID 0x502d
#elif defined(BOARD_WHISKERS)
#define CONFIG_USB_PID 0x5030
+#elif defined(BOARD_ZED)
+/* TODO: update PID */
+#define CONFIG_USB_PID 0x5022
#else
#error "Invalid board"
#endif
@@ -79,6 +82,15 @@
#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (CONFIG_UPDATE_PDU_SIZE + 128*1024)
/* Enable to send heatmap to AP */
#define CONFIG_USB_ISOCHRONOUS
+#elif defined(BOARD_ZED)
+/* TODO: update correct parameters */
+#define HAS_I2C_TOUCHPAD
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 3207
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1783
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE 511
+#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1018 /* tenth of mm */
+#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 566 /* tenth of mm */
+#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (48*1024)
#else
#error "No touchpad information for board."
#endif
diff --git a/board/zed b/board/zed
new file mode 120000
index 0000000000..7f4a914148
--- /dev/null
+++ b/board/zed
@@ -0,0 +1 @@
+hammer \ No newline at end of file
diff --git a/util/flash_ec b/util/flash_ec
index 1161f53624..dd6250564c 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -89,6 +89,7 @@ BOARDS_STM32=(
strago_pd
wand
whiskers
+ zed
zinger
)
BOARDS_STM32_PROG_EN=(