[boot]video: rockchip: vop: update for rk3288w

This commit is contained in:
cjp
2017-11-21 10:04:08 +08:00
parent 8bced652e6
commit d4f3fa5d76
2 changed files with 10 additions and 0 deletions

2
u-boot/drivers/video/rk32_lcdc.c Executable file → Normal file
View File

@ -818,6 +818,8 @@ void rk_lcdc_set_par(struct fb_dsp_info *fb_info, vidinfo_t *vid)
lcdc_writel(lcdc_dev, BCSH_BCS, 0xd0010000);
lcdc_writel(lcdc_dev, BCSH_H, 0x01000000);
lcdc_writel(lcdc_dev, BCSH_COLOR_BAR, 1);
if (lcdc_readl(lcdc_dev, VERSION_INFO) == VOP_FULL_RK3288_V1_1)
lcdc_writel(lcdc_dev, BCSH_CTRL, 0x11);
lcdc_cfg_done(lcdc_dev);
}

8
u-boot/drivers/video/rk32_lcdc.h Executable file → Normal file
View File

@ -20,6 +20,8 @@ DECLARE_GLOBAL_DATA_PTR;
#define VERSION_INFO (0x0004)
#define m_RTL_VERSION (0xffff<<0)
#define m_FPGA_VERSION (0xffff<<16)
#define VOP_FULL_RK3288_V1_0 0x03007236
#define VOP_FULL_RK3288_V1_1 0x0a050a01
#define SYS_CTRL (0x0008)
#define v_DIRECT_PATH_EN(x) (((x)&1)<<0)
#define v_DIRECT_PATCH_SEL(x) (((x)&3)<<1)
@ -1076,6 +1078,12 @@ DECLARE_GLOBAL_DATA_PTR;
#define m_BCSH_SIN_HUE (0x1ff<<0)
#define m_BCSH_COS_HUE (0x1ff<<16)
#define BCSH_CTRL (0x01bc)
#define v_BCSH_Y2R_EN(x) (((x)&0x1)<<0)
#define v_BCSH_R2Y_EN(x) (((x)&0x1)<<4)
#define m_BCSH_Y2R_EN (0x1<<0)
#define m_BCSH_R2Y_EN (0x1<<4)
#define CABC_CTRL0 (0x01c0)
#define v_CABC_EN(x) (((x)&1)<<0)
#define v_CABC_CALC_PIXEL_NUM(x) (((x)&0x7fffff)<<1)