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>
This commit is contained in:
Nicolas Boichat
2017-08-02 10:14:02 +08:00
committed by chrome-bot
parent b5ff2f599e
commit fe5cebf1d9

View File

@@ -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