From 05d00eec3ad5ab911f74c44a414e9b7dc1532b6a Mon Sep 17 00:00:00 2001 From: yxj Date: Thu, 24 Jan 2013 23:17:50 +0800 Subject: [PATCH] rk3188 lcdc:fix WIN1_VIRWIDTH err --- drivers/video/rockchip/lcdc/rk3188_lcdc.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.34.1