Commit b17bdd0d authored by Yongqiang Niu's avatar Yongqiang Niu Committed by CK Hu

drm/mediatek: add component OVL_2L0

This patch add component OVL_2L0
Signed-off-by: default avatarYongqiang Niu <yongqiang.niu@mediatek.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent 450aa87c
...@@ -249,6 +249,7 @@ static const struct mtk_ddp_comp_funcs ddp_ufoe = { ...@@ -249,6 +249,7 @@ static const struct mtk_ddp_comp_funcs ddp_ufoe = {
static const char * const mtk_ddp_comp_stem[MTK_DDP_COMP_TYPE_MAX] = { static const char * const mtk_ddp_comp_stem[MTK_DDP_COMP_TYPE_MAX] = {
[MTK_DISP_OVL] = "ovl", [MTK_DISP_OVL] = "ovl",
[MTK_DISP_OVL_2L] = "ovl_2l",
[MTK_DISP_RDMA] = "rdma", [MTK_DISP_RDMA] = "rdma",
[MTK_DISP_WDMA] = "wdma", [MTK_DISP_WDMA] = "wdma",
[MTK_DISP_COLOR] = "color", [MTK_DISP_COLOR] = "color",
...@@ -290,6 +291,7 @@ static const struct mtk_ddp_comp_match mtk_ddp_matches[DDP_COMPONENT_ID_MAX] = { ...@@ -290,6 +291,7 @@ static const struct mtk_ddp_comp_match mtk_ddp_matches[DDP_COMPONENT_ID_MAX] = {
[DDP_COMPONENT_OD1] = { MTK_DISP_OD, 1, &ddp_od }, [DDP_COMPONENT_OD1] = { MTK_DISP_OD, 1, &ddp_od },
[DDP_COMPONENT_OVL0] = { MTK_DISP_OVL, 0, NULL }, [DDP_COMPONENT_OVL0] = { MTK_DISP_OVL, 0, NULL },
[DDP_COMPONENT_OVL1] = { MTK_DISP_OVL, 1, NULL }, [DDP_COMPONENT_OVL1] = { MTK_DISP_OVL, 1, NULL },
[DDP_COMPONENT_OVL_2L0] = { MTK_DISP_OVL_2L, 0, NULL },
[DDP_COMPONENT_PWM0] = { MTK_DISP_PWM, 0, NULL }, [DDP_COMPONENT_PWM0] = { MTK_DISP_PWM, 0, NULL },
[DDP_COMPONENT_PWM1] = { MTK_DISP_PWM, 1, NULL }, [DDP_COMPONENT_PWM1] = { MTK_DISP_PWM, 1, NULL },
[DDP_COMPONENT_PWM2] = { MTK_DISP_PWM, 2, NULL }, [DDP_COMPONENT_PWM2] = { MTK_DISP_PWM, 2, NULL },
......
...@@ -17,6 +17,7 @@ struct drm_crtc_state; ...@@ -17,6 +17,7 @@ struct drm_crtc_state;
enum mtk_ddp_comp_type { enum mtk_ddp_comp_type {
MTK_DISP_OVL, MTK_DISP_OVL,
MTK_DISP_OVL_2L,
MTK_DISP_RDMA, MTK_DISP_RDMA,
MTK_DISP_WDMA, MTK_DISP_WDMA,
MTK_DISP_COLOR, MTK_DISP_COLOR,
...@@ -52,6 +53,7 @@ enum mtk_ddp_comp_id { ...@@ -52,6 +53,7 @@ enum mtk_ddp_comp_id {
DDP_COMPONENT_OD0, DDP_COMPONENT_OD0,
DDP_COMPONENT_OD1, DDP_COMPONENT_OD1,
DDP_COMPONENT_OVL0, DDP_COMPONENT_OVL0,
DDP_COMPONENT_OVL_2L0,
DDP_COMPONENT_OVL1, DDP_COMPONENT_OVL1,
DDP_COMPONENT_PWM0, DDP_COMPONENT_PWM0,
DDP_COMPONENT_PWM1, DDP_COMPONENT_PWM1,
......
...@@ -547,6 +547,7 @@ static int mtk_drm_probe(struct platform_device *pdev) ...@@ -547,6 +547,7 @@ static int mtk_drm_probe(struct platform_device *pdev)
*/ */
if (comp_type == MTK_DISP_COLOR || if (comp_type == MTK_DISP_COLOR ||
comp_type == MTK_DISP_OVL || comp_type == MTK_DISP_OVL ||
comp_type == MTK_DISP_OVL_2L ||
comp_type == MTK_DISP_RDMA || comp_type == MTK_DISP_RDMA ||
comp_type == MTK_DSI || comp_type == MTK_DSI ||
comp_type == MTK_DPI) { comp_type == MTK_DPI) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment