From patchwork Mon Oct 24 02:04:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?WGlubGVpIExlZSAo5p2O5piV56OKKQ==?= X-Patchwork-Id: 8126 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp215674wru; Sun, 23 Oct 2022 19:27:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ZpefRbGozQVStnEzHWueUupgNUZVZaxdTqdUtcHgoCmiWIb1QSsef8HYPpU+iLs3LUTFR X-Received: by 2002:a17:90b:1e08:b0:212:ee11:7b09 with SMTP id pg8-20020a17090b1e0800b00212ee117b09mr9033896pjb.60.1666578457336; Sun, 23 Oct 2022 19:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666578457; cv=none; d=google.com; s=arc-20160816; b=HZmKWMAPzXh82RmGuup3TF8/L11nY+86AEYMueAFXlckHdZ2zI5ML2HU+NUEPYALGH dVmDwkDME/hX4hAfLfb3EAU3M4oyzidI1ZL0a2eqq2giL8c39kpZkt9Ewxfxc3N3VnvE ge2dqZXSOp2ojZS8ctNRhs8G2P07q069PUykpkNp6N4HuPhgqKZaOxanlWDm2RriynmG aSFegUe1BSvY3ykUI18q9TOFp3W21x4BAAqxbO3jlCVVRemOtyUEdgiYdzEtHVu6OArA 1PyJj85ep5uBtygNJCpJs426q73a+5KBqgKRMAiI2+0ZQbw1tj3y/sTgP1RcJmaymhnu ERyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3wC0wmH7nkybQhVlHhUVEOcxiDVCzEk8gbZNg1jnZMU=; b=XIEDf8qTLjEuh4pVSxR1zFNKViSk97Aj9Lom8svM60chwF29sJt+OzHLrC/DSg+eZ+ aaPtDkKi8OLqpxS/oWf5jcilyVQTTpBW2OOxaHHO4wNftu7eB59nICoWpME/vNdsOJmX ZA0HxwNPzmcaykdWknLGlr78aqFUpofZy0ktoW9a5i+C/Uo0Et948dzVXHJl/ZQcuVIx Enxl/ILpfB6mA1G8/Q3nK+Li6MWPCFQ4vw6iVgwQcqH2nOi1TpRMHfTpMaVx7sHZ+ac3 5k1qf+cJRnesD4rpaZ2bj1DC7qeG6VHL3A1xbWKf1OG0xOyHnd2BM7I8BtmCKFwb+1Qj LK2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=TsJhPHKC; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa79548000000b00557bb4f6977si32291409pfq.106.2022.10.23.19.27.25; Sun, 23 Oct 2022 19:27:37 -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=TsJhPHKC; 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 S229832AbiJXCF1 (ORCPT + 99 others); Sun, 23 Oct 2022 22:05:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229943AbiJXCFU (ORCPT ); Sun, 23 Oct 2022 22:05:20 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A9736DCD for ; Sun, 23 Oct 2022 19:05:13 -0700 (PDT) X-UUID: dae7622024bd4c3b8a6fbece33fe4bfc-20221024 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=3wC0wmH7nkybQhVlHhUVEOcxiDVCzEk8gbZNg1jnZMU=; b=TsJhPHKClgx5k92oNNv/TiE/tSL6xoCp/m+Cju9rqIlStAI1EMO+XgUWnAzn4ZVsTOiuO8K0Uo3KbcW8Iq1ruPrq6FZVBy9YW1O1Gf3xlFhpFBVXX31M2B4I/8lDKkHs+rtES6ILskcUjnn4kWhh61gDYW7F+e/Mq3ND37ohur4=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.12,REQID:e1ea6796-1b72-464d-9505-83d3fd74b620,IP:0,U RL:0,TC:0,Content:-25,EDM:25,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACT ION:release,TS:95 X-CID-INFO: VERSION:1.1.12,REQID:e1ea6796-1b72-464d-9505-83d3fd74b620,IP:0,URL :0,TC:0,Content:-25,EDM:25,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACT ION:quarantine,TS:95 X-CID-META: VersionHash:62cd327,CLOUDID:66af6be4-e572-4957-be22-d8f73f3158f9,B ulkID:2210241005101WZSMWZV,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:5,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: dae7622024bd4c3b8a6fbece33fe4bfc-20221024 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 572509980; Mon, 24 Oct 2022 10:05:08 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Mon, 24 Oct 2022 10:05:06 +0800 Received: from mszsdaap41.gcn.mediatek.inc (10.16.6.141) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 24 Oct 2022 10:05:05 +0800 From: To: , , , , , , , , CC: , , , , , Xinlei Lee , Jitao Shi Subject: [PATCH v13,2/3] drm: mediatek: Set dpi format in mmsys Date: Mon, 24 Oct 2022 10:04:58 +0800 Message-ID: <1666577099-3859-3-git-send-email-xinlei.lee@mediatek.com> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1666577099-3859-1-git-send-email-xinlei.lee@mediatek.com> References: <1666577099-3859-1-git-send-email-xinlei.lee@mediatek.com> MIME-Version: 1.0 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747534172538080131?= X-GMAIL-MSGID: =?utf-8?q?1747534172538080131?= 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 Reviewed-by: CK Hu Reviewed-by: AngeloGioacchino Del Regno Reviewed-by: NĂ­colas F. R. A. Prado --- drivers/gpu/drm/mediatek/mtk_dpi.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 630a4e301ef6..ad87ecddf58d 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