ARM: rpi: enable USB keyboard
authorStephen Warren <swarren@wwwdotorg.org>
Wed, 16 Dec 2015 03:50:22 +0000 (20:50 -0700)
committerMarek Vasut <marex@denx.de>
Sat, 23 Jan 2016 15:21:55 +0000 (16:21 +0100)
Now that the DWC2 driver supports split transactions, we can reasonably
enable support for USB keyboards. This wasn't terribly useful before
since keyboards are usually LS/FS devices, and thus require split
transaction support when attached to a USB hub such as the hub built into
the RPi model Bs.

Cc: Stefan BrĂ¼ns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
include/configs/rpi-common.h

index 1b83eb36a7286889c5cbcb6c26f014688c365c7d..927bae78eb5a42d70f93f6c8bcc0a7e22af43984 100644 (file)
@@ -88,6 +88,9 @@
 #define CONFIG_USB_HOST_ETHER
 #define CONFIG_USB_ETHER_SMSC95XX
 #define CONFIG_MISC_INIT_R
+#define CONFIG_USB_KEYBOARD
+#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_SYS_STDIO_DEREGISTER
 #endif
 
 /* Console UART */
 #define CONFIG_SYS_LOAD_ADDR           0x1000000
 #define CONFIG_CONSOLE_MUX
 #define CONFIG_SYS_CONSOLE_IS_IN_ENV
+#define CONFIG_PREBOOT                 "usb start"
 
 /* Shell */
 #define CONFIG_SYS_MAXARGS             8
 /* Environment */
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #define ENV_DEVICE_SETTINGS \
-       "stdin=serial,lcd\0" \
+       "stdin=serial,usbkbd\0" \
        "stdout=serial,lcd\0" \
        "stderr=serial,lcd\0"