]> git.sur5r.net Git - u-boot/commitdiff
Powerpc/DIU: Fixed the 800x600 and 1024x768 resolution bug
authorJerry Huang <Chang-Ming.Huang@freescale.com>
Sun, 30 Oct 2011 20:19:54 +0000 (20:19 +0000)
committerAnatolij Gustschin <agust@denx.de>
Thu, 10 Nov 2011 22:27:17 +0000 (23:27 +0100)
When the resolution is set to 800x600 and 1024x768,
but, the driver will use 1280x1024 resolution to set the DIU register

Signed-off-by: Jerry Huang <Chang-Ming.Huang@freescale.com>
Acked-by: Timur Tabi <timur@freescale.com>
drivers/video/fsl_diu_fb.c

index cb439044fbf58fc9befd06ef4265b41535813688..350241ea3b0b7b6eb53ffe9debbe92704bee6a72 100644 (file)
@@ -252,8 +252,10 @@ int fsl_diu_init(u16 xres, u16 yres, u32 pixel_format, int gamma_fix)
                break;
        case RESOLUTION(800, 600):
                fsl_diu_mode_db = &fsl_diu_mode_800_600;
+               break;
        case RESOLUTION(1024, 768):
                fsl_diu_mode_db = &fsl_diu_mode_1024_768;
+               break;
        case RESOLUTION(1280, 1024):
                fsl_diu_mode_db = &fsl_diu_mode_1280_1024;
                break;