servod: move keyboard handler init logic into a driver
This CL moves the keyboard handler initialization into a driver, and
defaults it to 'off' for usb_keyboard and 'on' for regular keyboard handler.
This model allows for only servo v4, v3, and v2 to export the usb keyboard
handler (as ccd & micro are not capable of this).
It also moves the board specific KeyboardHandler logic (boxes, parrot
etc) into their respective overlays.
Supports V2, V3, and V4 usb keyboard handler invocation.
TEST=manual testing, keyboard handlers are properly initialized
More thorough testing in the lab environment by Haowei
Signed-off-by: Ruben Rodriguez Buchillon <email@example.com>
Commit-Ready: ChromeOS CL Exonerator Bot <firstname.lastname@example.org>
Tested-by: Ravi Chandra Sadineni <email@example.com>
Reviewed-by: Ravi Chandra Sadineni <firstname.lastname@example.org>
17 files changed