soc: mediatek: add mtk-mutex component - dp_intf1
authorNancy.Lin <nancy.lin@mediatek.com>
Fri, 13 Jan 2023 10:44:33 +0000 (18:44 +0800)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 25 Jan 2023 15:05:15 +0000 (16:05 +0100)
Add mtk-mutex DDP_COMPONENT_DP_INTF1 component. The MT8195 vdosys1 path
component contains ovl_adaptor, merge5, and dp_intf1. It is a preparation
for adding support for MT8195 vdosys1 path component.

Signed-off-by: Nancy.Lin <nancy.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: Bo-Chen Chen <rex-bc.chen@mediatek.com>
Link: https://lore.kernel.org/r/20230113104434.28023-11-nancy.lin@mediatek.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mtk-mutex.c

index 582d4b04e353dd983ff34728546bb3a674394806..e2d04f1a231ed027081c6281e787b3f845e3b1bf 100644 (file)
@@ -653,6 +653,9 @@ void mtk_mutex_add_comp(struct mtk_mutex *mutex,
        case DDP_COMPONENT_DP_INTF0:
                sof_id = MUTEX_SOF_DP_INTF0;
                break;
+       case DDP_COMPONENT_DP_INTF1:
+               sof_id = MUTEX_SOF_DP_INTF1;
+               break;
        default:
                if (mtx->data->mutex_mod[id] < 32) {
                        offset = DISP_REG_MUTEX_MOD(mtx->data->mutex_mod_reg,
@@ -693,6 +696,7 @@ void mtk_mutex_remove_comp(struct mtk_mutex *mutex,
        case DDP_COMPONENT_DPI0:
        case DDP_COMPONENT_DPI1:
        case DDP_COMPONENT_DP_INTF0:
+       case DDP_COMPONENT_DP_INTF1:
                writel_relaxed(MUTEX_SOF_SINGLE_MODE,
                               mtx->regs +
                               DISP_REG_MUTEX_SOF(mtx->data->mutex_sof_reg,