Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7193822ybi; Mon, 8 Jul 2019 16:37:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZHndMYbp48NZPb1RDqphyVBj9eXuUEoNKM7NPoOf8Kj2EZ9/a1DJU7OpmmUyTXs2huPph X-Received: by 2002:a17:90a:37ac:: with SMTP id v41mr27703644pjb.6.1562629040704; Mon, 08 Jul 2019 16:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629040; cv=none; d=google.com; s=arc-20160816; b=Sckb2Nvx7776JvpkAtHHDrnOCRuyLCnGO3AyZKRM96PByQdEHHUefQgADiogQ9c0Uw 9LeY5dYnMJ2tvSNS6mmfj+yW7ClyQ+QrrWpBf90KyNs6hBROcqP9Po5zgBYApqJPZKta RWi0B0GARb0I22f95J+iy6mZrtJYhtBgUkBSRnBeIXSOHCumlKvz1S6JOjG0T211oJev uZp4/A5d83DdvZIFE2Eh5WVBNWe6pkhxVDThGoczCE48HPgOXeQSx5CEFTvzjLHWfhU5 c7Wpbd7YVuBt/eLJzXJmm1RgxLkxEUjfr0yKYEGgBmtKgATtJdxaECvQW3QSOhSxg9nV sY+A== 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=jSdKAcxHdFCH5D94MxpA3xXs3+w4Jm53sSlM6GoALLI=; b=ka6YxD5feqJRLUMHcuuRfG6EHM5wvcvbaSbKgla3deOlhWwDOD1J2lz4p5PpFH5Q9Y EZjq8rlHuX7mdgWcNLO8wzY4WvgKMvua+PBxQORzGpfUnDirJqfLt0C6VtROTWKwEpwt Y6d+7BL567d6Risq+KoOOgqDx0cLlbxaK3tiu7VbVSZTHvIWjO3ewzZ+TdK82CZ/uUPj yeXPMUtxzCBjASt0CqRMuABH4u4FTdm866V7uPT9Mg32AEXC4fFli2zu+c+Aegg/lSi+ 5oJ4lemfgah7xBPeSIIA/q6yFlJp7/MjgmJjBbWu5+lgXFlZBddSfE5YVweNXfMH2J08 HPSA== 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 q195si19510755pgq.119.2019.07.08.16.37.06; Mon, 08 Jul 2019 16:37:20 -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 S1727955AbfGHWfE (ORCPT + 99 others); Mon, 8 Jul 2019 18:35:04 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:14050 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727571AbfGHWew (ORCPT ); Mon, 8 Jul 2019 18:34:52 -0400 X-UUID: 47fed46910f242119b0c58a04e0e73a7-20190709 X-UUID: 47fed46910f242119b0c58a04e0e73a7-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 2083053402; Tue, 09 Jul 2019 06:34:47 +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:46 +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:45 +0800 From: To: CK Hu , Philipp Zabel , Rob Herring , Matthias Brugger CC: David Airlie , Daniel Vetter , Mark Rutland , , , , , , Yongqiang Niu Subject: [PATCH v4, 30/33] drm/mediatek: add connection from OVL_2L1 to RDMA1 Date: Tue, 9 Jul 2019 06:34:10 +0800 Message-ID: <1562625253-29254-31-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 OVL_2L1 to RDMA1 Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 0a63dd0..4d75cef 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c @@ -42,9 +42,11 @@ #define DISP_REG_CONFIG_DPI_SEL 0x064 #define MT8183_DISP_OVL0_2L_MOUT_EN 0xf04 +#define MT8183_DISP_OVL1_2L_MOUT_EN 0xf08 #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 DISP_PATH0_SEL_IN_OVL0_2L 0x1 #define MT2701_DISP_MUTEX0_MOD0 0x2c @@ -325,6 +327,10 @@ static unsigned int mtk_ddp_mout_en(const struct mtk_mmsys_reg_data *data, next == DDP_COMPONENT_RDMA0) { *addr = MT8183_DISP_OVL0_2L_MOUT_EN; value = OVL0_2L_MOUT_EN_DISP_PATH0; + } else if (cur == DDP_COMPONENT_OVL_2L1 && + next == DDP_COMPONENT_RDMA1) { + *addr = MT8183_DISP_OVL1_2L_MOUT_EN; + value = OVL1_2L_MOUT_EN_RDMA1; } else { value = 0; } -- 1.8.1.1.dirty