drm/rockchip: ebc_dev: release version v1.03

1.add vir_width/vir_height support
2.optimize the speed of get pvr lut table

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I32e1b66a4ee53a198e4c349107ae52e0a7d40145
This commit is contained in:
Zorro Liu 2021-02-22 17:10:55 +08:00 committed by Tao Huang
parent 0022edf158
commit 646fea68b5
4 changed files with 14638 additions and 18547 deletions

File diff suppressed because it is too large Load Diff

View File

@ -27,6 +27,8 @@ struct ebc_panel {
u32 width;
u32 height;
u32 vir_width;
u32 vir_height;
u32 width_mm;
u32 height_mm;
u32 direct_mode;

File diff suppressed because it is too large Load Diff

View File

@ -169,7 +169,7 @@ static int tcon_enable(struct ebc_tcon *tcon, struct ebc_panel *panel)
/* panel timing and win info config */
tcon_write(tcon, EBC_DSP_HTIMING0,
DSP_HTOTAL(panel->lsl + panel->lbl + panel->ldl + panel->lel) | DSP_HS_END(panel->lsl+2));
DSP_HTOTAL(panel->lsl + panel->lbl + panel->ldl + panel->lel) | DSP_HS_END(panel->lsl + 2));
tcon_write(tcon, EBC_DSP_HTIMING1,
DSP_HACT_END(panel->lsl + panel->lbl + panel->ldl) | DSP_HACT_ST(panel->lsl + panel->lbl - 1));
tcon_write(tcon, EBC_DSP_VTIMING0,
@ -177,7 +177,7 @@ static int tcon_enable(struct ebc_tcon *tcon, struct ebc_panel *panel)
tcon_write(tcon, EBC_DSP_VTIMING1,
DSP_VACT_END(panel->fsl + panel->fbl + panel->fdl) | DSP_VACT_ST(panel->fsl + panel->fbl));
tcon_write(tcon, EBC_DSP_ACT_INFO, DSP_HEIGHT(panel->height) | DSP_WIDTH(panel->width));
tcon_write(tcon, EBC_WIN_VIR, WIN_VIR_HEIGHT(panel->height) | WIN_VIR_WIDTH(panel->width));
tcon_write(tcon, EBC_WIN_VIR, WIN_VIR_HEIGHT(panel->vir_height) | WIN_VIR_WIDTH(panel->vir_width));
tcon_write(tcon, EBC_WIN_ACT, WIN_ACT_HEIGHT(panel->height) | WIN_ACT_WIDTH(panel->width));
tcon_write(tcon, EBC_WIN_DSP, WIN_DSP_HEIGHT(panel->height) | WIN_DSP_WIDTH(panel->width));
tcon_write(tcon, EBC_WIN_DSP_ST, WIN_DSP_YST(panel->fsl + panel->fbl) | WIN_DSP_XST(panel->lsl + panel->lbl));