Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3190827rwa; Mon, 22 Aug 2022 23:46:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR5rP0IJDHLziRg97aHMnveQST7s8YQFCd41g/7PJBnlRHn4bYsWhvm0kPcMwVTg/9f4mVO0 X-Received: by 2002:a17:90b:3943:b0:1fa:e9ec:509a with SMTP id oe3-20020a17090b394300b001fae9ec509amr1925301pjb.186.1661237172954; Mon, 22 Aug 2022 23:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661237172; cv=none; d=google.com; s=arc-20160816; b=AZ9JEWSvTTp0NvwiuHSvdzwp4KBJtoXTejlk+zHbPgPbC+5UAvdwwcDipyp3zWmkKC p16z/ticCax0dUSTNI2sPuNe3WvuTkyJ3ZkTzBqMhHYh7LemLWZHN/cds5yHWlhvzrbw YvAo3LTLMoP53OpyqIZ5aSC2a9bQuvQ0RAkeYGpSON5ljLml6VqxxKoB/aVRa9Kp9wvc cR5s4lBEwYdlUb7GO6Uivi+vvjnjFTqaB6zGNWkX+b2Al5Eqtug3RwyjPg6EiHn7XVw7 nJ7Fl//xrguhMUo5JYdFsJq3h/mmtZpS+MpySjNzSdAKVLFSoeAsDNIxYcPNr4nZi6e2 QctA== 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=to1J31q+0yUGC7dO9OTi95xM6u2vTOh6on6nY2qkCbk=; b=VG5XYnO4YC/QGojJZe2/NGSH1Gs71snrjaOYdA0YMdtaMlg+mlmhz/AryUYEzEfp/B hzTiWoN93QGlaBxJoLjLzePoyXAnCzf7JTaqLicFBx+DVr4azsbAeS+BK53ouyPzF6Zb NifGTw9AMbeR2hpycc3pfSiWoq/xEHqQBB8Tff85X834JqmkclCwKNFsYnu730uq0JFZ QrbM8HabI951ME4Ho/GQCB4W9kY0JOUHwAS6EcQWJinp1V8zlxqiYAM7nX4eX8oLC03j +P1hDrKY3EeOnJgUzH1qPK2B0nFeOOxPKpYmdWhyKnlkIIXTBf8IKqTRVeBrVn4YXQ6U 7JFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=oMeAdXPw; 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 v13-20020a170902ca8d00b0016be9faf06csi13119616pld.393.2022.08.22.23.46.01; Mon, 22 Aug 2022 23:46:12 -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=oMeAdXPw; 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 S240227AbiHWGTD (ORCPT + 99 others); Tue, 23 Aug 2022 02:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240488AbiHWGSz (ORCPT ); Tue, 23 Aug 2022 02:18:55 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F75F13DF2 for ; Mon, 22 Aug 2022 23:18:53 -0700 (PDT) X-UUID: 43afc50180204ecd86b3ebd163c5ecb2-20220823 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=to1J31q+0yUGC7dO9OTi95xM6u2vTOh6on6nY2qkCbk=; b=oMeAdXPwNhQHaDEzF/H1NDS8B/w1l28v73dO3LpSRCgyhNka4OqUUE0WvT0E2jjJcJ7nf6lufvrhaNdNXJV+wFYyWXe1NHliy8XwkYUulHi48Zigl+qw+drc+futxJgrWTKyWcbGdt44q/faNxUE4VYc++mzlWBZLhph+uoV1og=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.10,REQID:918908b7-d5b8-4838-8e71-31e66ad36aed,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:708d51cf-20bd-4e5e-ace8-00692b7ab380,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: 43afc50180204ecd86b3ebd163c5ecb2-20220823 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1385553394; Tue, 23 Aug 2022 14:18:48 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Tue, 23 Aug 2022 14:18:46 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 23 Aug 2022 14:18:46 +0800 From: To: , , , , , , , , CC: , , , , , Xinlei Lee , Jitao Shi Subject: [PATCH v3,2/2] drm: mediatek: Adjust the dpi output format to MT8186 Date: Tue, 23 Aug 2022 14:18:37 +0800 Message-ID: <1661235517-23699-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1661235517-23699-1-git-send-email-xinlei.lee@mediatek.com> References: <1661235517-23699-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. Because MT8186 HW has been modified at that time, SW needs to cooperate. And the register (MMSYS) reserved for dpi will be used for output format control (dual_edge/single_edge). Co-developed-by: Jitao Shi Signed-off-by: Jitao Shi Signed-off-by: Xinlei Lee --- drivers/gpu/drm/mediatek/mtk_dpi.c | 31 +++++++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dpi_regs.h | 4 ++++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ 3 files changed, 37 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 630a4e301ef6..b66423bd7765 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -15,6 +15,7 @@ #include #include #include +#include #include #include