Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7192971ybi; Mon, 8 Jul 2019 16:36:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTBbF4XyBB0d1DvZgdL47OIe8citokypTkInyDij1VUK2If+OvJ1x1o6reLK6jHsik10Lr X-Received: by 2002:a63:784c:: with SMTP id t73mr12333749pgc.268.1562628970219; Mon, 08 Jul 2019 16:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562628970; cv=none; d=google.com; s=arc-20160816; b=VBYJP+CxTo1NfRmiLdrtv6Ja3GoayCNSIH6MkjH1ANE1D8iC2wfznhhORBXhacgi7H OLP5rCE+z0b1rKYwfP54NK719xp7XGsiBkORsB087QDTSWlQZqmFc1u7EUTyDbU/ofkR ojcqCRxralBd8O5Yy1iQHTRAvqfB3m4tP0FIcBPxMreU01qPJTbltlfneNxh14IQz+HE vHBKYxRSv0elrv2Z4ZC9PxuK7RA9seJUxe1G6+D0OqbJrTBrnY1y+UUJTqGrbN6A+I1B +rTdaoa5Mud5q8XOjPP+jsS9ML2FR3HgdmXJgVzCS+qf471/y2rWN1iDrM2/PMrpGZWZ CI2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=U8eRsXKSbPQGK0lw4f+7zIh0quu95eWd4Es9fV4iNww=; b=mGPmvtlqKeuVUoFFoSAFI6dIIwL/T5zAoyf/H7E0LTcuh8rWD0TI0Co7M/zkwmwugw EkbzI0bwMAkIGE6aDB0V88xpAoK0bO5Nl+11OD9/V1RUtdkVVGgITsLJRsJ4NZZTBPw2 pAMQ5WE9N0ujiy1H/RJ+A87FLnBZ5oI4LVtQA1zyjLiCg42TQ27VthTsM+0f5E1fjYc0 02TKOTbvUup9t+ICaYjnt7RAXn0V/zEvXewPEpGuf0qPyoHyi3J2hz34LKmyrV+N4CBh FsQcmQYgHkZggYRzeacCb8Xqy8Pr2NAlcJ89/6QQIhs7BJmExTYaHFf5MbZ0fbvn2m/c 3RNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11si20316905plr.34.2019.07.08.16.35.54; Mon, 08 Jul 2019 16:36:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727889AbfGHWfA (ORCPT + 99 others); Mon, 8 Jul 2019 18:35:00 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:25910 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727677AbfGHWeu (ORCPT ); Mon, 8 Jul 2019 18:34:50 -0400 X-UUID: e37847bf802246ea86cbbd7eb1240560-20190709 X-UUID: e37847bf802246ea86cbbd7eb1240560-20190709 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 611989789; Tue, 09 Jul 2019 06:34:48 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Jul 2019 06:34:47 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 9 Jul 2019 06:34:46 +0800 From: To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v4, 31/33] drm/mediatek: add connection from DITHER0 to DSI0 Date: Tue, 9 Jul 2019 06:34:11 +0800 Message-ID: <1562625253-29254-32-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1562625253-29254-1-git-send-email-yongqiang.niu@mediatek.com> References: <1562625253-29254-1-git-send-email-yongqiang.niu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yongqiang Niu This patch add connection from DITHER0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 4d75cef..c4c8531 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c @@ -43,10 +43,12 @@ #define MT8183_DISP_OVL0_2L_MOUT_EN 0xf04 #define MT8183_DISP_OVL1_2L_MOUT_EN 0xf08 +#define MT8183_DISP_DITHER0_MOUT_EN 0xf0c #define MT8183_DISP_PATH0_SEL_IN 0xf24 #define OVL0_2L_MOUT_EN_DISP_PATH0 BIT(0) #define OVL1_2L_MOUT_EN_RDMA1 BIT(4) +#define DITHER0_MOUT_IN_DSI0 BIT(0) #define DISP_PATH0_SEL_IN_OVL0_2L 0x1 #define MT2701_DISP_MUTEX0_MOD0 0x2c @@ -331,6 +333,9 @@ static unsigned int mtk_ddp_mout_en(const struct mtk_mmsys_reg_data *data, next == DDP_COMPONENT_RDMA1) { *addr = MT8183_DISP_OVL1_2L_MOUT_EN; value = OVL1_2L_MOUT_EN_RDMA1; + } else if (cur == DDP_COMPONENT_DITHER && next == DDP_COMPONENT_DSI0) { + *addr = MT8183_DISP_DITHER0_MOUT_EN; + value = DITHER0_MOUT_IN_DSI0; } else { value = 0; } -- 1.8.1.1.dirty