diff options
author | Jerry Huang <Chang-Ming.Huang@freescale.com> | 2011-10-30 20:19:54 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-11-10 23:27:17 +0100 |
commit | 15006cb7db8fc9cbae809746ad7959c9e90cca1d (patch) | |
tree | 5a527cc335a5e07a0a9cd6d46f82c383411a85b4 /drivers | |
parent | 5721385b187b3154c7768e6c182501022f4e2e45 (diff) | |
download | u-boot-imx-15006cb7db8fc9cbae809746ad7959c9e90cca1d.zip u-boot-imx-15006cb7db8fc9cbae809746ad7959c9e90cca1d.tar.gz u-boot-imx-15006cb7db8fc9cbae809746ad7959c9e90cca1d.tar.bz2 |
Powerpc/DIU: Fixed the 800x600 and 1024x768 resolution bug
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/video/fsl_diu_fb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/fsl_diu_fb.c b/drivers/video/fsl_diu_fb.c index cb43904..350241e 100644 --- a/drivers/video/fsl_diu_fb.c +++ b/drivers/video/fsl_diu_fb.c @@ -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; |