diff options
author | Ting Shen <phoenixshen@google.com> | 2020-09-24 16:57:00 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-29 06:19:32 +0000 |
commit | 7ff256dd7efd0127f7c25501a2f08184783d1ed0 (patch) | |
tree | f6bdecbf11a451c38e5b0747499878f833d99d2d /board/hammer | |
parent | b16c033100f11fb6f290d1fb8f47fbffac369e1e (diff) | |
download | chrome-ec-7ff256dd7efd0127f7c25501a2f08184783d1ed0.tar.gz |
zed: initial commit
BUG=b:167884598
TEST=make BOARD=zed
BRANCH=master
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: I0b3542bff38756c07e5073672f0d485cd6a9d0c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2428444
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r-- | board/hammer/variants.h | 12 |
1 files changed, 12 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 |