summaryrefslogtreecommitdiff
path: root/include/keyboard_8042_sharedlib.h
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2017-05-17 18:15:15 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-05-18 06:03:52 -0700
commit11237d5e911d769cac995e2e1ab9d16598542bc8 (patch)
tree1e679437f36debf7a67e74891bb7bd937049234b /include/keyboard_8042_sharedlib.h
parent0b077ad67173f11f8816b01213bc09f622326799 (diff)
downloadchrome-ec-11237d5e911d769cac995e2e1ab9d16598542bc8.tar.gz
hammer: Make keyboard work at firmware screen
First, libpayload expects the keyboard interface index to be 0. Then, hid_iface_request needs to reply to USB_HID_DT_HID request with the content of struct usb_hid_descriptor. With current code, the variable name is generated (and therefore hard to guess), so we create a new set of macros so that we can use a specific variable name. Also, add support for HID Get_Protocol and Set_Protocol, as they are compulsory for devices supporting boot protocol, even though those are mostly no-op for now. Finally, add a note regarding USB HID keyboard boot protocol, to make sure that we do not accidentally change the report format. BRANCH=none BUG=b:36538963 TEST=Keyboard works in FW screen, both trackpad and keyboard still work when AP has booted. TEST=hammer/staff can still be updated (both RO from RW, and RW from RO) Change-Id: Ibea4888385909c9ce3b430464e5805c039d4b9ed Reviewed-on: https://chromium-review.googlesource.com/505796 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/keyboard_8042_sharedlib.h')
0 files changed, 0 insertions, 0 deletions