diff options
author | Chen-Tsung Hsieh <chentsung@google.com> | 2020-03-16 09:18:29 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-07-15 16:11:30 +0000 |
commit | 6582f03aa737a301e7f9ea1e770b18232f5d1eee (patch) | |
tree | a6565a3545d1daf0bd7ee8413dc9582a672bd5a1 /board/hammer | |
parent | bac525d57d08cdb74df7ab02913bbe23aa0a1e67 (diff) | |
download | chrome-ec-6582f03aa737a301e7f9ea1e770b18232f5d1eee.tar.gz |
hammer: Add touchpad support for moonball
BRANCH=kukui
BUG=b:150268720, b:151098124
TEST=make BOARD=moonball
Flash into moonball, see the board boot:
util/flash_ec --image /build/kukui/firmware/moonball/ec.bin
Cq-Depend: chrome-internal:2743654
Signed-off-by: Chen-Tsung Hsieh <chentsung@google.com>
Change-Id: I64d28a3c65977c6dd5307d86c6c20f728e785f82
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2102837
Tested-by: Chen-Tsung Hsieh <chentsung@chromium.org>
Commit-Queue: Chen-Tsung Hsieh <chentsung@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Zhuohao Lee <zhuohao@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r-- | board/hammer/variants.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/hammer/variants.h b/board/hammer/variants.h index c0a883c172..7bf0b02e07 100644 --- a/board/hammer/variants.h +++ b/board/hammer/variants.h @@ -53,7 +53,13 @@ #define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 457 /* tenth of mm */ #define CONFIG_TOUCHPAD_VIRTUAL_SIZE (64*1024) #elif defined(BOARD_MOONBALL) -#define HAS_NO_TOUCHPAD +#define HAS_I2C_TOUCHPAD +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2926 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1441 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE 511 +#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 950 /* tenth of mm */ +#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 480 /* tenth of mm */ +#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (56*1024) #elif defined(BOARD_STAFF) #define HAS_I2C_TOUCHPAD #define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 3206 |