From: yxj Date: Thu, 24 Jan 2013 15:17:50 +0000 (+0800) Subject: rk3188 lcdc:fix WIN1_VIRWIDTH err X-Git-Tag: firefly_0821_release~7789 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=05d00eec3ad5ab911f74c44a414e9b7dc1532b6a;p=firefly-linux-kernel-4.4.55.git rk3188 lcdc:fix WIN1_VIRWIDTH err --- diff --git a/drivers/video/rockchip/lcdc/rk3188_lcdc.h b/drivers/video/rockchip/lcdc/rk3188_lcdc.h index f5510456c53c..1451f15f2eac 100644 --- a/drivers/video/rockchip/lcdc/rk3188_lcdc.h +++ b/drivers/video/rockchip/lcdc/rk3188_lcdc.h @@ -229,9 +229,9 @@ #define v_RGB888_VIRWIDTH(x) (((((x*3)>>2)+((x)%3))&0x1fff)<<0) #define v_RGB565_VIRWIDTH(x) ((DIV_ROUND_UP(x,2)&0x1fff)<<0) #define v_YUV_VIRWIDTH(x) ((DIV_ROUND_UP(x,4)&0x1fff)<<0) -#define v_WIN1_ARGB888_VIRWIDTH(x) (((x)&0x1fff)<<0) -#define v_WIN1_RGB888_VIRWIDTH(x) (((((x*3)>>2)+((x)%3))&0x1fff)<<0) -#define v_WIN1_RGB565_VIRWIDTH(x) ((DIV_ROUND_UP(x,2)&0x1fff)<<0) +#define v_WIN1_ARGB888_VIRWIDTH(x) (((x)&0x1fff)<<16) +#define v_WIN1_RGB888_VIRWIDTH(x) (((((x*3)>>2)+((x)%3))&0x1fff)<<16) +#define v_WIN1_RGB565_VIRWIDTH(x) ((DIV_ROUND_UP(x,2)&0x1fff)<<16)