arm: mx6: cm-fx6: add support for displaytype env var
authorNikita Kiryanov <nikita@compulab.co.il>
Thu, 23 Jul 2015 14:19:30 +0000 (17:19 +0300)
committerStefano Babic <sbabic@denx.de>
Sun, 2 Aug 2015 08:51:37 +0000 (10:51 +0200)
Add support for selecting display preset using the environment variable
"displaytype". This is a preparation for future merging of compulab
omap3_display.c display selection code with the cm-fx6 display selection code.

The "panel" environment variable is retained for backwards compatibility.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
board/compulab/cm_fx6/cm_fx6.c

index 2fb8db5e5884bf8bd77020069a1d9860d67d54ea..3e518c18d41d8d6ecbe2643b4cbbf57e09097ce3 100644 (file)
@@ -95,7 +95,10 @@ int board_video_skip(void)
 {
        int ret;
        struct display_info_t *preset;
-       char const *panel = getenv("panel");
+       char const *panel = getenv("displaytype");
+
+       if (!panel) /* Also accept panel for backward compatibility */
+               panel = getenv("panel");
 
        if (!panel)
                return -ENOENT;