Commit f4f3ec48 authored by stu.hsieh@mediatek.com's avatar stu.hsieh@mediatek.com Committed by CK Hu

drm/mediatek: add DPI1 support for mutex

This patch add the DPI1 support for mutex
Signed-off-by: default avatarStu Hsieh <stu.hsieh@mediatek.com>
Signed-off-by: default avatarCK Hu <ck.hu@mediatek.com>
parent d335369e
...@@ -76,6 +76,7 @@ ...@@ -76,6 +76,7 @@
#define MUTEX_SOF_DSI0 1 #define MUTEX_SOF_DSI0 1
#define MUTEX_SOF_DSI1 2 #define MUTEX_SOF_DSI1 2
#define MUTEX_SOF_DPI0 3 #define MUTEX_SOF_DPI0 3
#define MUTEX_SOF_DPI1 4
#define OVL0_MOUT_EN_COLOR0 0x1 #define OVL0_MOUT_EN_COLOR0 0x1
#define OD_MOUT_EN_RDMA0 0x1 #define OD_MOUT_EN_RDMA0 0x1
...@@ -385,6 +386,9 @@ void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex, ...@@ -385,6 +386,9 @@ void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex,
case DDP_COMPONENT_DPI0: case DDP_COMPONENT_DPI0:
reg = MUTEX_SOF_DPI0; reg = MUTEX_SOF_DPI0;
break; break;
case DDP_COMPONENT_DPI1:
reg = MUTEX_SOF_DPI1;
break;
default: default:
if (ddp->mutex_mod[id] < 32) { if (ddp->mutex_mod[id] < 32) {
offset = DISP_REG_MUTEX_MOD(mutex->id); offset = DISP_REG_MUTEX_MOD(mutex->id);
...@@ -417,6 +421,7 @@ void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex, ...@@ -417,6 +421,7 @@ void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex,
case DDP_COMPONENT_DSI0: case DDP_COMPONENT_DSI0:
case DDP_COMPONENT_DSI1: case DDP_COMPONENT_DSI1:
case DDP_COMPONENT_DPI0: case DDP_COMPONENT_DPI0:
case DDP_COMPONENT_DPI1:
writel_relaxed(MUTEX_SOF_SINGLE_MODE, writel_relaxed(MUTEX_SOF_SINGLE_MODE,
ddp->regs + DISP_REG_MUTEX_SOF(mutex->id)); ddp->regs + DISP_REG_MUTEX_SOF(mutex->id));
break; break;
......
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