Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4999630img; Tue, 26 Mar 2019 23:21:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI3beFF//XnBHcdlfmsEgeD7v64JWrBrB9ovLHjiBGdlDmrvlpbNy2osXk/J4YCVlp+Ayt X-Received: by 2002:a17:902:f084:: with SMTP id go4mr35695398plb.15.1553667663113; Tue, 26 Mar 2019 23:21:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553667663; cv=none; d=google.com; s=arc-20160816; b=0+xIpb21Kxt6GUbl1Bb4HHg3ozRpsaBcy7JN77/Jw3+Uppz6+p0qJJhSh+97sOv+TS GFEuY64Efax9pJ+DE+JzAkYiW2IvIuETFrtigdx6VhiQBwnaltKoPrf+zYWAdOtDAcqC b1beL9AmxtwvHmLgwVmp3FVHTRSRUuIb6Apt+qZGhD8VkNfOvkoqgKnsLUraEXvYeOVf 4Eom67/Luqm+k1V6xHzR6QdjAxQNAIUjXCjAd9NGvJzuw1vz8J3KfrQjjOpSln23lLl5 /g/IUgHCpgl8sv1YPHJdFLYxbqSH+Mu6PfVxqYe762/dUEiUexXHE26lvgXoWbap24Ra zf9g== 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=shYRALEMUrBWrXu9dXQrqfgmgVLOdwjOqv1xxC2ewSE=; b=RnilmkWFGacsJQ5LRbn+gPz2A84D3asfkcRjss78t1w5Prb6xQjhapKLiAPUM45XRH tkQs2YsSXWKHt3FMk3FNyHePDdQZizn5bda62sss8VbaKck8IKS6BTN9VOsa+F6lqNae Z5I8g/gfFADPoufhZRka4nC2soNSB12nslyIXWyHDwKpGPtQgUuII8OR8bY6oCofhg/0 gB5EeEnNZ876ZOnqfjN6qTjrF35mfTOa7rq+45sPtZW3BBnYSgauEhn9TQLbPzvNUdIG UTEghziMo4o5TUOkEmx9xAFEOofpWZjEzi65OwG1tineWPO8QZ9DeFWM7Xhq0yfpD4Ju SDSw== 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 z25si17233727pgv.523.2019.03.26.23.20.47; Tue, 26 Mar 2019 23:21:03 -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 S1732997AbfC0GTx (ORCPT + 99 others); Wed, 27 Mar 2019 02:19:53 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:42559 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1733187AbfC0GTw (ORCPT ); Wed, 27 Mar 2019 02:19:52 -0400 X-UUID: aec59a05de554b279f3c1aa275add4ba-20190327 X-UUID: aec59a05de554b279f3c1aa275add4ba-20190327 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1118869525; Wed, 27 Mar 2019 14:19:36 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 27 Mar 2019 14:19:34 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 27 Mar 2019 14:19:33 +0800 From: To: , , , CC: , , , , , , , , , Yongqiang Niu Subject: [PATCH v2 05/25] drm/mediatek: split DISP_REG_CONFIG_DSI_SEL setting into another use case Date: Wed, 27 Mar 2019 14:19:01 +0800 Message-ID: <1553667561-25447-6-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1553667561-25447-1-git-send-email-yongqiang.niu@mediatek.com> References: <1553667561-25447-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 Here is two modifition in this patch: 1.bls->dpi0 and rdma1->dsi are differen usecase, Split DISP_REG_CONFIG_DSI_SEL setting into anther usecase 2.remove DISP_REG_CONFIG_DPI_SEL setting, DPI_SEL_IN_BLS is 0 and this is same with hardware defautl setting, Signed-off-by: Yongqiang Niu --- drivers/gpu/drm/mediatek/mtk_drm_ddp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c index 495ebc5..80dc91f 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_ddp.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_ddp.c @@ -401,10 +401,9 @@ static void mtk_ddp_sout_sel(void __iomem *config_regs, } else if (cur == DDP_COMPONENT_BLS && next == DDP_COMPONENT_DPI0) { writel_relaxed(BLS_TO_DPI_RDMA1_TO_DSI, config_regs + DISP_REG_CONFIG_OUT_SEL); + } else if (cur == DDP_COMPONENT_RDMA1 && next == DDP_COMPONENT_DSI0) { writel_relaxed(DSI_SEL_IN_RDMA, config_regs + DISP_REG_CONFIG_DSI_SEL); - writel_relaxed(DPI_SEL_IN_BLS, - config_regs + DISP_REG_CONFIG_DPI_SEL); } } -- 1.8.1.1.dirty