]> git.sur5r.net Git - u-boot/commitdiff
imx: make ipu's di configurable
authorMax Krummenacher <max.oss.09@gmail.com>
Tue, 1 Nov 2016 14:04:21 +0000 (15:04 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:33:21 +0000 (16:33 +0100)
The ipu has two display interfaces. Make the used one a parameter
in struct display_info_t instead of using unconditionally DI0.
DI0 is the default setting.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Reviewed-by: Eric Nelson <eric@nelint.com>
arch/arm/imx-common/video.c
arch/arm/include/asm/imx-common/video.h

index fdc987f469f9d64caf4d95f0f671cc1f18359e43..549bf9d957a0449559a8ff367bf337c9cd9178a7 100644 (file)
@@ -34,7 +34,7 @@ int board_video_skip(void)
        }
 
        if (i < display_count) {
-               ret = ipuv3_fb_init(&displays[i].mode, 0,
+               ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0,
                                    displays[i].pixfmt);
                if (!ret) {
                        if (displays[i].enable)
index cad5f861cb857ed91af00f5304c5ec7b9e73440b..941a031964c18d7bbd1614f613f1e70fccffbcdd 100644 (file)
@@ -12,6 +12,7 @@ struct display_info_t {
        int     bus;
        int     addr;
        int     pixfmt;
+       int     di;
        int     (*detect)(struct display_info_t const *dev);
        void    (*enable)(struct display_info_t const *dev);
        struct  fb_videomode mode;