* [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI
@ 2015-05-04 17:09 Fabio Estevam
2015-05-04 18:18 ` Vagrant Cascadian
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2015-05-04 17:09 UTC (permalink / raw)
To: u-boot
Starting USB initialization is useful for those who use Cuboxi/Hummingboard
with HDMI and USB keyboard.
However, when booting without a HDMI connection we can skip the usb
initialization, which makes the boot faster.
Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
Changes since v1:
- Improve commit log (avoid repeating the word 'use').
include/configs/mx6cuboxi.h | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h
index 4e07f59..b6f9d4e 100644
--- a/include/configs/mx6cuboxi.h
+++ b/include/configs/mx6cuboxi.h
@@ -80,6 +80,7 @@
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO
#define CONFIG_IMX_HDMI
+#define CONFIG_CMD_HDMIDETECT
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_CONSOLE_MUX
@@ -94,7 +95,17 @@
#define CONFIG_USB_MAX_CONTROLLER_COUNT 2
#define CONFIG_USB_KEYBOARD
#define CONFIG_SYS_USB_EVENT_POLL
-#define CONFIG_PREBOOT "usb start"
+#define CONFIG_PREBOOT \
+ "if hdmidet; then " \
+ "usb start; " \
+ "setenv stdin serial,usbkbd; "\
+ "setenv stdout serial,vga; " \
+ "setenv stderr serial,vga; " \
+ "else " \
+ "setenv stdin serial; " \
+ "setenv stdout serial; " \
+ "setenv stderr serial; " \
+ "fi;"
#define CONFIG_SYS_NO_FLASH
@@ -117,9 +128,6 @@
#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" \
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI
2015-05-04 17:09 [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI Fabio Estevam
@ 2015-05-04 18:18 ` Vagrant Cascadian
2015-05-11 16:47 ` Fabio Estevam
0 siblings, 1 reply; 4+ messages in thread
From: Vagrant Cascadian @ 2015-05-04 18:18 UTC (permalink / raw)
To: u-boot
On 2015-05-04, Fabio Estevam wrote:
> Starting USB initialization is useful for those who use Cuboxi/Hummingboard
> with HDMI and USB keyboard.
>
> However, when booting without a HDMI connection we can skip the usb
> initialization, which makes the boot faster.
>
> Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Improve commit log (avoid repeating the word 'use').
>
> include/configs/mx6cuboxi.h | 16 ++++++++++++----
> 1 file changed, 12 insertions(+), 4 deletions(-)
>
> diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h
> index 4e07f59..b6f9d4e 100644
> --- a/include/configs/mx6cuboxi.h
> +++ b/include/configs/mx6cuboxi.h
> @@ -80,6 +80,7 @@
> #define CONFIG_VIDEO_LOGO
> #define CONFIG_VIDEO_BMP_LOGO
> #define CONFIG_IMX_HDMI
> +#define CONFIG_CMD_HDMIDETECT
> #define CONFIG_IMX_VIDEO_SKIP
> #define CONFIG_CONSOLE_MUX
>
> @@ -94,7 +95,17 @@
> #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
> #define CONFIG_USB_KEYBOARD
> #define CONFIG_SYS_USB_EVENT_POLL
> -#define CONFIG_PREBOOT "usb start"
> +#define CONFIG_PREBOOT \
> + "if hdmidet; then " \
> + "usb start; " \
> + "setenv stdin serial,usbkbd; "\
> + "setenv stdout serial,vga; " \
> + "setenv stderr serial,vga; " \
> + "else " \
> + "setenv stdin serial; " \
> + "setenv stdout serial; " \
> + "setenv stderr serial; " \
> + "fi;"
>
> #define CONFIG_SYS_NO_FLASH
>
> @@ -117,9 +128,6 @@
>
> #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" \
> --
> 1.9.1
Tested-By: Vagrant Cascadian <vagrant@aikidev.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150504/df7a6998/attachment.sig>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI
2015-05-04 18:18 ` Vagrant Cascadian
@ 2015-05-11 16:47 ` Fabio Estevam
2015-05-11 18:05 ` Stefano Babic
0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2015-05-11 16:47 UTC (permalink / raw)
To: u-boot
Hi Stefano,
On Mon, May 4, 2015 at 3:18 PM, Vagrant Cascadian <vagrant@aikidev.net> wrote:
> On 2015-05-04, Fabio Estevam wrote:
>> Starting USB initialization is useful for those who use Cuboxi/Hummingboard
>> with HDMI and USB keyboard.
>>
>> However, when booting without a HDMI connection we can skip the usb
>> initialization, which makes the boot faster.
>>
>> Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> Tested-By: Vagrant Cascadian <vagrant@aikidev.net>
Could this one be applied?
Thanks,
Fabio Estevam
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI
2015-05-11 16:47 ` Fabio Estevam
@ 2015-05-11 18:05 ` Stefano Babic
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2015-05-11 18:05 UTC (permalink / raw)
To: u-boot
Hi Fabio,
On 11/05/2015 18:47, Fabio Estevam wrote:
> Hi Stefano,
>
> On Mon, May 4, 2015 at 3:18 PM, Vagrant Cascadian <vagrant@aikidev.net> wrote:
>> On 2015-05-04, Fabio Estevam wrote:
>>> Starting USB initialization is useful for those who use Cuboxi/Hummingboard
>>> with HDMI and USB keyboard.
>>>
>>> However, when booting without a HDMI connection we can skip the usb
>>> initialization, which makes the boot faster.
>>>
>>> Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com>
>>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
>
>> Tested-By: Vagrant Cascadian <vagrant@aikidev.net>
>
> Could this one be applied?
>
Yes !
Applied to u-boot-imx.
Best regards,
Stefano Babic
--
=====================================================================
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
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-05-11 18:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-04 17:09 [U-Boot] [PATCH v2] mx6cuboxi: Skip usb initialization when booting without HDMI Fabio Estevam
2015-05-04 18:18 ` Vagrant Cascadian
2015-05-11 16:47 ` Fabio Estevam
2015-05-11 18:05 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox