diff mbox

[U-Boot,3/4] mx6cuboxi: Allow HDMI and USB keyboard to be stdout/stdin

Message ID 1430188244-28216-3-git-send-email-festevam@gmail.com
State Changes Requested
Delegated to: Stefano Babic
Headers show

Commit Message

Fabio Estevam April 28, 2015, 2:30 a.m. UTC
From: Fabio Estevam <fabio.estevam@freescale.com>

There are users of Cuboxi and Hummingboard that use these boards without
connecting them to a USB/serial adapter.

Allow such usage by allowing the HDMI port to act as stdout and USB keyboard
as stdin.

The serial console still also works as stdin/stdout.

Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 include/configs/mx6cuboxi.h | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Tom Rini April 28, 2015, 2:48 p.m. UTC | #1
On Mon, Apr 27, 2015 at 11:30:43PM -0300, Fabio Estevam wrote:


> From: Fabio Estevam <fabio.estevam@freescale.com>
> 
> There are users of Cuboxi and Hummingboard that use these boards without
> connecting them to a USB/serial adapter.
> 
> Allow such usage by allowing the HDMI port to act as stdout and USB keyboard
> as stdin.
> 
> The serial console still also works as stdin/stdout.
> 
> Signed-off-by: Rabeeh Khoury <rabeeh@solid-run.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>

This all looks right so:

Reviewed-by: Tom Rini <trini@konsulko.com>

But my keyboards (which iirc also caused problems on Allwinner) don't
work but I don't think that's a Hummingboard/mx6 problem.
diff mbox

Patch

diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h
index e7a18c6..38c358e 100644
--- a/include/configs/mx6cuboxi.h
+++ b/include/configs/mx6cuboxi.h
@@ -81,6 +81,7 @@ 
 #define CONFIG_VIDEO_BMP_LOGO
 #define CONFIG_IMX_HDMI
 #define CONFIG_IMX_VIDEO_SKIP
+#define CONFIG_CONSOLE_MUX
 
 /* USB */
 #define CONFIG_CMD_USB
@@ -93,6 +94,9 @@ 
 #define CONFIG_MXC_USB_PORTSC		(PORT_PTS_UTMI | PORT_PTS_PTW)
 #define CONFIG_MXC_USB_FLAGS		0
 #define CONFIG_USB_MAX_CONTROLLER_COUNT	2
+#define CONFIG_USB_KEYBOARD
+#define CONFIG_SYS_USB_EVENT_POLL
+#define CONFIG_PREBOOT			"usb start"
 
 #define CONFIG_SYS_NO_FLASH
 
@@ -115,6 +119,9 @@ 
 
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"stdin=serial,usbkbd\0" \
+	"stdout=serial,vga\0" \
+	"stderr=serial,vga\0" \
 	"script=boot.scr\0" \
 	"image=zImage\0" \
 	"fdtfile=undefined\0" \