public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: rpi: enable USB keyboard
@ 2015-12-16  3:50 Stephen Warren
  2015-12-16 14:15 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Warren @ 2015-12-16  3:50 UTC (permalink / raw)
  To: u-boot

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>
---
This depends on Stefan Br?ns' series "usb: dwc2: add SPLIT transaction
support".
---
 include/configs/rpi-common.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/configs/rpi-common.h b/include/configs/rpi-common.h
index 1b83eb36a728..927bae78eb5a 100644
--- a/include/configs/rpi-common.h
+++ b/include/configs/rpi-common.h
@@ -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 */
@@ -111,6 +114,7 @@
 #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
@@ -133,7 +137,7 @@
 /* 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"
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] ARM: rpi: enable USB keyboard
  2015-12-16  3:50 [U-Boot] [PATCH] ARM: rpi: enable USB keyboard Stephen Warren
@ 2015-12-16 14:15 ` Marek Vasut
  0 siblings, 0 replies; 2+ messages in thread
From: Marek Vasut @ 2015-12-16 14:15 UTC (permalink / raw)
  To: u-boot

On Wednesday, December 16, 2015 at 04:50:22 AM, Stephen Warren wrote:
> 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>

In that case, I am putting both into u-boot-usb/dwc2 for now, until the dwc2
patchset gets more fleshed out . Thanks!

Best regards,
Marek Vasut

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-16 14:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-16  3:50 [U-Boot] [PATCH] ARM: rpi: enable USB keyboard Stephen Warren
2015-12-16 14:15 ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox