drm/rockchip: vop: Add support rk1808 vop lite

Change-Id: I9a17036597bc8a5bd6ae197d9306260374933503
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
This commit is contained in:
Sandy Huang 2018-10-10 10:29:50 +08:00 committed by Jianhong Chen
parent 1cd89291af
commit ad3aa75a65
4 changed files with 28 additions and 0 deletions

View File

@ -42,6 +42,11 @@ static const struct rockchip_crtc rk3308_vop_data = {
.data = &rk3308_vop,
};
static const struct rockchip_crtc rk1808_vop_data = {
.funcs = &rockchip_vop_funcs,
.data = &rk1808_vop,
};
static const struct rockchip_crtc rk3288_vop_big_data = {
.funcs = &rockchip_vop_funcs,
.data = &rk3288_vop_big,
@ -101,6 +106,9 @@ static const struct udevice_id rockchip_vop_ids[] = {
}, {
.compatible = "rockchip,rk3308-vop",
.data = (ulong)&rk3308_vop_data,
}, {
.compatible = "rockchip,rk1808-vop-lit",
.data = (ulong)&rk1808_vop_data,
}, {
.compatible = "rockchip,rk3288-vop-big",
.data = (ulong)&rk3288_vop_big_data,

View File

@ -31,6 +31,7 @@ extern const struct vop_data rk3036_vop;
extern const struct vop_data px30_vop_lit;
extern const struct vop_data px30_vop_big;
extern const struct vop_data rk3308_vop;
extern const struct vop_data rk1808_vop;
extern const struct vop_data rk3288_vop_big;
extern const struct vop_data rk3288_vop_lit;
extern const struct vop_data rk3368_vop;

View File

@ -658,6 +658,20 @@ const struct vop_data rk3308_vop = {
.reg_len = RK3366_LIT_FRC_LOWER01_0 * 4,
};
static const struct vop_grf_ctrl rk1808_grf_ctrl = {
.grf_dclk_inv = VOP_REG(RK1808_GRF_PD_VO_CON1, 0x1, 4),
};
const struct vop_data rk1808_vop = {
.version = VOP_VERSION(2, 8),
.max_output = {1920, 1080},
.ctrl = &px30_ctrl_data,
.grf_ctrl = &rk1808_grf_ctrl,
.win = &rk3366_win1_data,
.line_flag = &rk3366_vop_lite_line_flag,
.reg_len = RK3366_LIT_FRC_LOWER01_0 * 4,
};
const struct vop_data rv1108_vop = {
.version = VOP_VERSION(2, 4),
.max_output = {1920, 1080},

View File

@ -959,4 +959,9 @@
#define PX30_AFBCD0_AXI_CTRL 0x00250
#define PX30_GRF_PD_VO_CON1 0x00438
/* px30 register definition end */
/* rk1808 register definition start*/
#define RK1808_GRF_PD_VO_CON1 0x00000444
/* rk1808 register definition end*/
#endif /* _ROCKCHIP_VOP_REG_H */