From: InKi Dae Date: Wed, 11 Aug 2010 01:02:32 +0000 (-0700) Subject: s3c-fb: fix distortedness situation for the mode more then 24bpp X-Git-Tag: v2.6.36-rc1~183 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dc8498c00f6a41a28f01111a3d2ed9f179356a71;p=karo-tx-linux.git s3c-fb: fix distortedness situation for the mode more then 24bpp It has been working fine at 16bpp but in case of pixel format more then 24bpp it would occur distortedness situation on that mode. so this patch set the word swap control bit of WINCONx to 1 as default value. but it should be set to 0 in case that each ENLOCAL bit of WINCON0 ~ 2 registers is enabled. this issue would be solved with local path feature soon. Signed-off-by: InKi Dae Reviewed-by: KyungMin Park Signed-off-by: Ben Dooks Signed-off-by: Pawel Osciak Cc: Marek Szyprowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/arm/plat-samsung/include/plat/regs-fb.h b/arch/arm/plat-samsung/include/plat/regs-fb.h index 0ef806e50344..41c68ac13a67 100644 --- a/arch/arm/plat-samsung/include/plat/regs-fb.h +++ b/arch/arm/plat-samsung/include/plat/regs-fb.h @@ -173,6 +173,7 @@ #define WINCONx_BITSWP (1 << 18) #define WINCONx_BYTSWP (1 << 17) #define WINCONx_HAWSWP (1 << 16) +#define WINCONx_WSWP (1 << 15) #define WINCONx_BURSTLEN_MASK (0x3 << 9) #define WINCONx_BURSTLEN_SHIFT (9) #define WINCONx_BURSTLEN_16WORD (0x0 << 9) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index c4639c4e62f2..9c46f954c614 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -424,6 +424,7 @@ static int s3c_fb_set_par(struct fb_info *info) else data |= WINCON0_BPPMODE_24BPP_888; + data |= WINCONx_WSWP; data |= WINCONx_BURSTLEN_16WORD; break; }