diff options
author | Nicolas Boichat <drinkcat@google.com> | 2017-08-02 10:14:02 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-09-12 06:38:08 -0700 |
commit | fe5cebf1d9ef7c8e3f456e24c5e90f0fb8deef2e (patch) | |
tree | 1e1d62b56fb655b352e02e2f7f6098eab004698f | |
parent | b5ff2f599ecce1bef82127af0c8724be3583c827 (diff) | |
download | chrome-ec-fe5cebf1d9ef7c8e3f456e24c5e90f0fb8deef2e.tar.gz |
hammer: Enable touchpad FW update over USB updater
We use address 0x80000000, which is not mapped to anything in
STM32F0 address space.
BRANCH=none
BUG=b:63993173, b:65188846
TEST=./usb_updater2 -p 144.0_2.0.bin
CQ-DEPEND=CL:601814
Change-Id: I9a9044d29ebe058d3792dc984cac4051a005cf8f
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/597468
Commit-Ready: Chun-ta Lin <itspeter@chromium.org>
Tested-by: Chun-ta Lin <itspeter@chromium.org>
-rw-r--r-- | board/hammer/board.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h index 506105611d..a0028d22b0 100644 --- a/board/hammer/board.h +++ b/board/hammer/board.h @@ -181,6 +181,14 @@ #define CONFIG_TOUCHPAD_I2C_PORT 0 #define CONFIG_TOUCHPAD_I2C_ADDR (0x15 << 1) +/* Virtual address for touchpad FW in USB updater. */ +#define CONFIG_TOUCHPAD_VIRTUAL_OFF 0x80000000 +/* TODO(itspeter): The CONFIG_TOUCHPAD_VIRTUAL_SIZE depends on IC. + * b/65188846 will address this separately. It will only works + * for this size as for now. + */ +#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (48*1024) + #define CONFIG_CURVE25519 #define CONFIG_USB_PAIRING |