Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2746971rwe; Sun, 28 Aug 2022 21:54:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR45OwWjQX1JE2nudrfh+B9X8gibPP2D/MgJujAo8psRHmekRIVQzQsenoLPqbs2dlFXgF5a X-Received: by 2002:a17:906:cc14:b0:73d:d230:2aa8 with SMTP id ml20-20020a170906cc1400b0073dd2302aa8mr11407174ejb.218.1661748890880; Sun, 28 Aug 2022 21:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661748890; cv=none; d=google.com; s=arc-20160816; b=efe8tBea6JtvxY6iOXJbUKMEOGEcbDdZrsuDHvgU57NIhJ87UWTdydy8Mic2vz8Gdq jbTSk+SARtoe6WYuJIrzYEv71qB7kU0r6i9GKPtmW9b4TYbLmxTXerpJJinpdUV75cIK /M37YDhCZC2wOOGJcErihwu4X1ZmkxB7FZjOEUgQVSHprEAWbR1PvIMUIceGMreeM8wp 79TGdThf2xPSqepKMVGYjxamlbsFUcnvBR1xKCSj6Sb25pxDVT9zaLc7E2fWCJY0crH0 VZoNYxMNRoW/8odxROV9+5NlcMvmLO6fF7fIepXNW1TFW0psYFeE4ctCozJPDsF7WYVA skJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nD+0dd7Q28fnO/EJg7GQTKXFWummrm6z3QgOgeAIIko=; b=fmpqFnrXb/MAfqgqxqrR6EXmVs9LgoA0cLMspBxUwDsB+HE65rZD9geXqc+xHNy0lE OhZvB3m3C8QBirsbRpgllOVkcYCfXFun6whyCSw9doR5417kJkz/3q4AOTZk1NtS1vZf xr1dbcHd9b2W/xY9Vwtul6QlGzBU1+8gLfAEFb1ndnOHRKRS0uJ8vhWwvV5dk5lT0dXZ QBrNnhDK5rHfA++LbZWXy9BDuwob4fYZBRJmtIGzpFwj+uWhT9NdZXGyJZb9Mb/xz3wX sa/2sON1FT1jRz2Yj0DCOGL7/on6YU8uZBfINLwY1Yr9Ef+5MjcVbrGZfQyefq0tb3DS Ak3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=B8VsV+hx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp26-20020a1709071b1a00b0072b3a874867si3739534ejc.874.2022.08.28.21.54.25; Sun, 28 Aug 2022 21:54:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=B8VsV+hx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbiH2DW0 (ORCPT + 99 others); Sun, 28 Aug 2022 23:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbiH2DWU (ORCPT ); Sun, 28 Aug 2022 23:22:20 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93FCD402F0 for ; Sun, 28 Aug 2022 20:22:18 -0700 (PDT) X-UUID: 8da2ff64d9ef4de5ae91bdc4264b986c-20220829 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=nD+0dd7Q28fnO/EJg7GQTKXFWummrm6z3QgOgeAIIko=; b=B8VsV+hxwtKNbIeEfmmYTELGpCeFnC5d2sGUVYBdNknU8TIP3NGeRQFrHbMW1aZ6GLHn7f+VWHiZlf+qhbzRljE/CvVCFnpTfgG44QV1g1RF/8RxmVpq9b6VVfWUnZfrw57Zw7tWAXgaEnzc+x5DqiiR1F1HYAn3OZLQOBNxleQ=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.10,REQID:0779f09f-2bdd-47b2-aa34-79caaf006f33,OB:0,L OB:0,IP:0,URL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Releas e_Ham,ACTION:release,TS:-25 X-CID-META: VersionHash:84eae18,CLOUDID:b1f3d555-e800-47dc-8adf-0c936acf4f1b,C OID:IGNORED,Recheck:0,SF:nil,TC:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil ,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 8da2ff64d9ef4de5ae91bdc4264b986c-20220829 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 896292019; Mon, 29 Aug 2022 11:22:13 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Mon, 29 Aug 2022 11:22:11 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 29 Aug 2022 11:22:10 +0800 From: To: , , , , , , , , , CC: , , , , , , Xinlei Lee Subject: [PATCH v4,2/2] drm: mediatek: Adjust the dpi output format to MT8186 Date: Mon, 29 Aug 2022 11:21:48 +0800 Message-ID: <1661743308-29120-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1661743308-29120-1-git-send-email-xinlei.lee@mediatek.com> References: <1661743308-29120-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xinlei Lee Dpi output needs to adjust the output format to dual edge for MT8186. Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 32 +++++++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 5 ++++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 3 files changed, 39 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index fb0b79704636..c23ef7deef26 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include