Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7193411ybi; Mon, 8 Jul 2019 16:36:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNNj62XFHMm8+s9cipK2x4UUwXg83JYE2lxu/15WmV4lTUQqFQ/gJiymdNaL2iZJXZchE9 X-Received: by 2002:a63:5550:: with SMTP id f16mr13576134pgm.426.1562629006720; Mon, 08 Jul 2019 16:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629006; cv=none; d=google.com; s=arc-20160816; b=eYsiFMtxg5bhSyL6WkGHi6FIVM5bbjPjrbBCRBm/y5pmaP5yLv5p45mp4km9sqcAtK 0/WmXzKpkU7bcwqOTgxc2HLTLMCw/vO4iK6mVgeQknvAg3sy36XJLiQycABeUBFIDbi1 hs2LRyk8n/hDdInMga0d16EPoLfMlb2AS4nglylBGixtg5CX2vB2Njc/enrceyMK/5kB e7AL46viQGZf+TWMSH59eOPHI75r94AK8LDKDpdvDaOP6swtEy4UK4oBIl/j2Xp3rSv9 gEt4shc0qOf9192bEw4n4qtQoHwT3eTZc0ju0oOZ8QPUHBu6t3zCMyN9b1uCVmuFn08/ fh0Q== 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=DnVPO2MGk5gHkERKI7s3UNSODh6Q4g0qxMNsqB34dVM=; b=vU5fsi2c9c5vxAnJXuez+zfDpBfmsIcKF8DNZFq6R0Ht2eUMJa/ZYWZBgcEyxqu3oM FsnH+d0wQOJGgqE2RoWrMbaAmN2wb7B+BbHERFHZXjHiGXdbTY/gEjoLYa1foHBlqo/e XuLSUVr4X1BwZ61I7BPPF3wBJRzu6vGUOQ7w518pQga8vN1Erjfn0NZMoMT5yXpKxYXc sCZsVqGRMWPUPmxgfMsyGs7TgLh8guVreMju8h6EM+QkcFgczwJQbcxnMs065zqPGaG9 zSl8LP0fMBDT3D9/4Xhh47HyZGgzo5S3TuncZsZDlj/A/0FbyYZpd5nZbSViHzLr/fSC re7g== 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 z15si14199496pgl.316.2019.07.08.16.36.30; Mon, 08 Jul 2019 16:36:46 -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 S1728020AbfGHWfL (ORCPT + 99 others); Mon, 8 Jul 2019 18:35:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49169 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727865AbfGHWfC (ORCPT ); Mon, 8 Jul 2019 18:35:02 -0400 X-UUID: 844d98c508af48f488c3a54ab6bcc64a-20190709 X-UUID: 844d98c508af48f488c3a54ab6bcc64a-20190709 Received: from mtkmrs01.mediatek.inc [(172.21.131.159)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1828685871; Tue, 09 Jul 2019 06:34:55 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 9 Jul 2019 06:34:48 +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:47 +0800 From: To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v4, 32/33] drm/mediatek: add connection from RDMA0 to DSI0 Date: Tue, 9 Jul 2019 06:34:12 +0800 Message-ID: <1562625253-29254-33-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-TM-SNTS-SMTP: FFF25BBAC92DFC85AAD87DFD86EC8597FFD500CED069048C70FB38ED281410732000:8 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 RDMA0 to DSI0 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index c4c8531..c4d8ecb 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c @@ -50,6 +50,7 @@ #define OVL1_2L_MOUT_EN_RDMA1 BIT(4) #define DITHER0_MOUT_IN_DSI0 BIT(0) #define DISP_PATH0_SEL_IN_OVL0_2L 0x1 +#define DSI0_SEL_IN_RDMA0 0x1 #define MT2701_DISP_MUTEX0_MOD0 0x2c #define MT2701_DISP_MUTEX0_SOF0 0x30 @@ -399,6 +400,9 @@ static unsigned int mtk_ddp_sel_in(const struct mtk_mmsys_reg_data *data, next == DDP_COMPONENT_RDMA0) { *addr = MT8183_DISP_PATH0_SEL_IN; value = DISP_PATH0_SEL_IN_OVL0_2L; + } else if (cur == DDP_COMPONENT_RDMA0 && next == DDP_COMPONENT_DSI0) { + *addr = data->dsi0_sel_in; + value = DSI0_SEL_IN_RDMA0; } else { value = 0; } -- 1.8.1.1.dirty