diff options
author | Ting Shen <phoenixshen@google.com> | 2021-04-09 12:42:18 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-09 23:29:09 +0000 |
commit | 1a0d80c2a22a3e67fe19763dc8a65af56530d10b (patch) | |
tree | 6d27bcccd9e6ab159347dc61654b45919bead534 /board/hammer | |
parent | e0405ddddaf7ed1436382fecfba9af0a4a3b0321 (diff) | |
download | chrome-ec-1a0d80c2a22a3e67fe19763dc8a65af56530d10b.tar.gz |
star: initial commit
Create initial commit for Homestar keyboard.
BUG=b:183899273
BRANCH=trogdor
TEST=bootable on Coachz/Zed
Signed-off-by: Ting Shen <phoenixshen@google.com>
Change-Id: Ibed73189bd518b54e0205fe24255a4c3a0ae84fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2816304
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Commit-Queue: Wai-Hong Tam <waihong@google.com>
Tested-by: Wai-Hong Tam <waihong@google.com>
Auto-Submit: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'board/hammer')
-rw-r--r-- | board/hammer/variants.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/hammer/variants.h b/board/hammer/variants.h index e5820287e5..e9ebadd0c6 100644 --- a/board/hammer/variants.h +++ b/board/hammer/variants.h @@ -25,6 +25,8 @@ #define CONFIG_USB_PID 0x5044 #elif defined(BOARD_STAFF) #define CONFIG_USB_PID 0x502b +#elif defined(BOARD_STAR) +#define CONFIG_USB_PID 0x5052 #elif defined(BOARD_WAND) #define CONFIG_USB_PID 0x502d #elif defined(BOARD_WHISKERS) @@ -80,6 +82,15 @@ #define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1017 /* tenth of mm */ #define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 581 /* tenth of mm */ #define CONFIG_TOUCHPAD_VIRTUAL_SIZE (56*1024) +#elif defined(BOARD_STAR) +/* TODO: update correct parameters */ +#define HAS_I2C_TOUCHPAD +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 3206 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1832 +#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE 511 +#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1017 /* tenth of mm */ +#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 581 /* tenth of mm */ +#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (56*1024) #elif defined(BOARD_WHISKERS) #define HAS_SPI_TOUCHPAD #define HAS_EN_PP3300_TP_ACTIVE_HIGH |