mirror of
https://xff.cz/git/u-boot/
synced 2025-08-31 16:22:36 +02:00
video: restore CONFIG_VIDCONSOLE_AS_LCD as boolean
This patch restores CONFIG_VIDCONSOLE_AS_LCD as boolean
and introduce a separate sting as CONFIG_VIDCONSOLE_AS_NAME
to search this string in stdout used as videoconsole.
This patch avoid issue with board defconfig or code expecting
CONFIG_VIDCONSOLE_AS_LCD as boolean.
Fixes: 22b897a123
("video: extend stdout video console work-around for 'vga'")
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
committed by
Tom Rini
parent
6e7d7aa2e2
commit
27b5b9ec93
@@ -713,7 +713,7 @@ struct stdio_dev *search_device(int flags, const char *name)
|
||||
|
||||
dev = stdio_get_by_name(name);
|
||||
#ifdef CONFIG_VIDCONSOLE_AS_LCD
|
||||
if (!dev && !strcmp(name, CONFIG_VIDCONSOLE_AS_LCD))
|
||||
if (!dev && !strcmp(name, CONFIG_VIDCONSOLE_AS_NAME))
|
||||
dev = stdio_get_by_name("vidconsole");
|
||||
#endif
|
||||
|
||||
@@ -897,9 +897,9 @@ done:
|
||||
stdio_print_current_devices();
|
||||
#endif /* CONFIG_SYS_CONSOLE_INFO_QUIET */
|
||||
#ifdef CONFIG_VIDCONSOLE_AS_LCD
|
||||
if (strstr(stdoutname, CONFIG_VIDCONSOLE_AS_LCD))
|
||||
if (strstr(stdoutname, CONFIG_VIDCONSOLE_AS_NAME))
|
||||
printf("Warning: Please change '%s' to 'vidconsole' in stdout/stderr environment vars\n",
|
||||
CONFIG_VIDCONSOLE_AS_LCD);
|
||||
CONFIG_VIDCONSOLE_AS_NAME);
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SYS_CONSOLE_ENV_OVERWRITE
|
||||
|
Reference in New Issue
Block a user