rk3188 lcdc:fix WIN1_VIRWIDTH err
authoryxj <yxj@rock-chips.com>
Thu, 24 Jan 2013 15:17:50 +0000 (23:17 +0800)
committeryxj <yxj@rock-chips.com>
Fri, 25 Jan 2013 03:04:32 +0000 (11:04 +0800)
drivers/video/rockchip/lcdc/rk3188_lcdc.h

index f5510456c53ce4d40411e89818b784652fbd0b22..1451f15f2eac8e9c36453b0bc8369b27061cbf41 100644 (file)
 #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)