]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx28: set variable 'videomode' to convey video mode setting to mxsfb driver
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:42:12 +0000 (15:42 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:42:12 +0000 (15:42 +0200)
board/karo/tx28/tx28.c

index e16a02374cf4afd2e07d6591b70ec20b2d516a89..8e38d34b3564cfff8b69c0ae141f24eecc5a473c 100644 (file)
@@ -715,8 +715,16 @@ void lcd_ctrl_init(void *lcdbase)
                color_depth, refresh);
 
        if (karo_load_splashimage(0) == 0) {
+               char vmode[32];
+
+               /* setup env variable for mxsfb display driver */
+               snprintf(vmode, sizeof(vmode), "%dx%dMR-%d@%d",
+                       p->xres, p->yres, color_depth, refresh);
+               setenv("videomode", vmode);
+
                debug("Initializing LCD controller\n");
                video_hw_init(lcdbase);
+               setenv("videomode", NULL);
        } else {
                debug("Skipping initialization of LCD controller\n");
        }