video: rockchip: lcdc: 3288/3368: read screen regs in uboot mode
Change-Id: I36db50471140d041fd0220283bc4e6ce59ec9d74 Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
parent
52f8f5cff0
commit
44bc4fd736
2 changed files with 32 additions and 0 deletions
|
|
@ -343,6 +343,22 @@ static void lcdc_read_reg_defalut_cfg(struct lcdc_device *lcdc_dev)
|
|||
case WIN0_CBR_MST:
|
||||
win0->area[0].cbr_start = val;
|
||||
break;
|
||||
case DSP_VACT_ST_END:
|
||||
if (support_uboot_display()) {
|
||||
screen->mode.yres =
|
||||
(val & 0x1fff) - ((val >> 16) & 0x1fff);
|
||||
win0->area[0].ypos =
|
||||
st_y - ((val >> 16) & 0x1fff);
|
||||
}
|
||||
break;
|
||||
case DSP_HACT_ST_END:
|
||||
if (support_uboot_display()) {
|
||||
screen->mode.xres =
|
||||
(val & 0x1fff) - ((val >> 16) & 0x1fff);
|
||||
win0->area[0].xpos =
|
||||
st_x - ((val >> 16) & 0x1fff);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -394,6 +394,22 @@ static void lcdc_read_reg_defalut_cfg(struct lcdc_device *lcdc_dev)
|
|||
case WIN0_CBR_MST:
|
||||
win0->area[0].cbr_start = val;
|
||||
break;
|
||||
case DSP_VACT_ST_END:
|
||||
if (support_uboot_display()) {
|
||||
screen->mode.yres =
|
||||
(val & 0x1fff) - ((val >> 16) & 0x1fff);
|
||||
win0->area[0].ypos =
|
||||
st_y - ((val >> 16) & 0x1fff);
|
||||
}
|
||||
break;
|
||||
case DSP_HACT_ST_END:
|
||||
if (support_uboot_display()) {
|
||||
screen->mode.xres =
|
||||
(val & 0x1fff) - ((val >> 16) & 0x1fff);
|
||||
win0->area[0].xpos =
|
||||
st_x - ((val >> 16) & 0x1fff);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue