mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/mediatek: add DSI2 support for mutex
This patch add the DSI2 support for mutex Signed-off-by: Stu Hsieh <stu.hsieh@mediatek.com> Signed-off-by: CK Hu <ck.hu@mediatek.com>
This commit is contained in:
parent
f4f3ec480e
commit
dee8eb4e66
|
|
@ -77,6 +77,7 @@
|
||||||
#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 MUTEX_SOF_DPI1 4
|
||||||
|
#define MUTEX_SOF_DSI2 5
|
||||||
|
|
||||||
#define OVL0_MOUT_EN_COLOR0 0x1
|
#define OVL0_MOUT_EN_COLOR0 0x1
|
||||||
#define OD_MOUT_EN_RDMA0 0x1
|
#define OD_MOUT_EN_RDMA0 0x1
|
||||||
|
|
@ -383,6 +384,9 @@ void mtk_disp_mutex_add_comp(struct mtk_disp_mutex *mutex,
|
||||||
case DDP_COMPONENT_DSI1:
|
case DDP_COMPONENT_DSI1:
|
||||||
reg = MUTEX_SOF_DSI0;
|
reg = MUTEX_SOF_DSI0;
|
||||||
break;
|
break;
|
||||||
|
case DDP_COMPONENT_DSI2:
|
||||||
|
reg = MUTEX_SOF_DSI2;
|
||||||
|
break;
|
||||||
case DDP_COMPONENT_DPI0:
|
case DDP_COMPONENT_DPI0:
|
||||||
reg = MUTEX_SOF_DPI0;
|
reg = MUTEX_SOF_DPI0;
|
||||||
break;
|
break;
|
||||||
|
|
@ -420,6 +424,7 @@ void mtk_disp_mutex_remove_comp(struct mtk_disp_mutex *mutex,
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case DDP_COMPONENT_DSI0:
|
case DDP_COMPONENT_DSI0:
|
||||||
case DDP_COMPONENT_DSI1:
|
case DDP_COMPONENT_DSI1:
|
||||||
|
case DDP_COMPONENT_DSI2:
|
||||||
case DDP_COMPONENT_DPI0:
|
case DDP_COMPONENT_DPI0:
|
||||||
case DDP_COMPONENT_DPI1:
|
case DDP_COMPONENT_DPI1:
|
||||||
writel_relaxed(MUTEX_SOF_SINGLE_MODE,
|
writel_relaxed(MUTEX_SOF_SINGLE_MODE,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user