Skip to contentSkip to conversation

board: tbs2910: always enable usbkbd

PATCH New Soeren Moch 2 participants 4 messages Jul 27, 2016 – Jul 28, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 board: tbs2910: always enable usbkbd

'usb start' is much faster now, so always enable usb keyboard

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
include/configs/tbs2910.h +6 -7
index ec0bf05..7c89e5f 100644
@@ -129,9 +129,9 @@
 #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
 #define CONFIG_SYS_STDIO_DEREGISTER
 #define CONFIG_PREBOOT \
+	"usb start; " \
 	"if hdmidet; then " \
-		"usb start; " \
-		"run set_con_usb_hdmi; " \
+		"run set_con_hdmi; " \
 	"else " \
 		"run set_con_serial; " \
 	"fi;"
@@ -181,12 +181,11 @@
 			"bootm 0x10800000 0x10d00000\0" \
 	"console=ttymxc0\0" \
 	"fan=gpio set 92\0" \
-	"set_con_serial=setenv stdin serial; " \
-			"setenv stdout serial; " \
+	"set_con_serial=setenv stdout serial; " \
 			"setenv stderr serial;\0" \
-	"set_con_usb_hdmi=setenv stdin serial,usbkbd; " \
-			"setenv stdout serial,vga; " \
-			"setenv stderr serial,vga;\0"
+	"set_con_hdmi=setenv stdout serial,vga; " \
+			"setenv stderr serial,vga;\0" \
+	"stdin=serial,usbkbd;\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc rescan; " \
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 board: tbs2910: fix HDMI pre-console buffer

HDMI output must be enabled very early to also enable the pre-console buffer

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/configs/tbs2910.h +3 -1
index 7c89e5f..640bce4 100644
@@ -185,7 +185,9 @@
 			"setenv stderr serial;\0" \
 	"set_con_hdmi=setenv stdout serial,vga; " \
 			"setenv stderr serial,vga;\0" \
-	"stdin=serial,usbkbd;\0"
+	"stderr=serial,vga;\0" \
+	"stdin=serial,usbkbd;\0" \
+	"stdout=serial,vga;\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc rescan; " \
Signature · 1 line
1.9.1
#3 lore raw

PATCH 1/2 board: tbs2910: always enable usbkbd

In reply to Soeren Moch
Quoted 34 lines · Soeren Moch

'usb start' is much faster now, so always enable usb keyboard

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
include/configs/tbs2910.h +3 -4
index ec0bf05..7c89e5f 100644
@@ -129,9 +129,9 @@
 #define CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE
 #define CONFIG_SYS_STDIO_DEREGISTER
 #define CONFIG_PREBOOT \
+	"usb start; " \
 	"if hdmidet; then " \
-		"usb start; " \
-		"run set_con_usb_hdmi; " \
+		"run set_con_hdmi; " \
 	"else " \
 		"run set_con_serial; " \
 	"fi;"
@@ -181,12 +181,11 @@
 			"bootm 0x10800000 0x10d00000\0" \
 	"console=ttymxc0\0" \
 	"fan=gpio set 92\0" \
-	"set_con_serial=setenv stdin serial; " \
-			"setenv stdout serial; " \
+	"set_con_serial=setenv stdout serial; " \

include/configs/tbs2910.h line 191

Quoted 10 lines
include/configs/tbs2910.h +3 -3
 			"setenv stderr serial;\0" \
-	"set_con_usb_hdmi=setenv stdin serial,usbkbd; " \
-			"setenv stdout serial,vga; " \
-			"setenv stderr serial,vga;\0"
+	"set_con_hdmi=setenv stdout serial,vga; " \
+			"setenv stderr serial,vga;\0" \
+	"stdin=serial,usbkbd;\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc rescan; " \

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#2 lore raw

PATCH 2/2 board: tbs2910: fix HDMI pre-console buffer

In reply to Soeren Moch
Quoted 16 lines · Soeren Moch

HDMI output must be enabled very early to also enable the pre-console buffer

---
Cc: Stefano Babic <[email protected]>
Cc: u-boot at lists.denx.de

---
 include/configs/tbs2910.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
include/configs/tbs2910.h +0 -0
index 7c89e5f..640bce4 100644

include/configs/tbs2910.h line 193

Quoted 10 lines
include/configs/tbs2910.h +3 -1
@@ -185,7 +185,9 @@
 			"setenv stderr serial;\0" \
 	"set_con_hdmi=setenv stdout serial,vga; " \
 			"setenv stderr serial,vga;\0" \
-	"stdin=serial,usbkbd;\0"
+	"stderr=serial,vga;\0" \
+	"stdin=serial,usbkbd;\0" \
+	"stdout=serial,vga;\0"
 
 #define CONFIG_BOOTCOMMAND \
 	"mmc rescan; " \

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================