Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6156686rwi; Sun, 23 Oct 2022 19:28:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6nJW5wY3LSGdXX8dNZURla+7sj7m/aqagW6SjWKkx3dvDwcw34zQvDMj86nfQslmcHxS0j X-Received: by 2002:a05:6a00:1f10:b0:562:b9e1:55e9 with SMTP id be16-20020a056a001f1000b00562b9e155e9mr31042926pfb.60.1666578481698; Sun, 23 Oct 2022 19:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666578481; cv=none; d=google.com; s=arc-20160816; b=FyR2CAL7HsdKzEOxJqt0zDB9Iu7iVp3dFI7VQ5DO44IuncWfBvLvulDd7z4nA2o4Gw zuOud1nmFjyqfT4bf4rB7e+YF0kL9tnWQukounQsYeW2MqKN5NaWrf31eVCzwyig6Aym kqHpB0lB2Wmmr1R5+QdCnJPdmB9cPKpXzP6d3+4lt7RTGkpkRDGeYt/ynYmDEPdrcVCj JvrEJ8fRJRS8FqZz5lFwUdduRrR4NtJmRR3rQ4MDuv+W5p25mdhvSF3iO+l/5JC2Uj6R oPgroVxHYu48V7Rl26J7f3sxcjp040yLkqGh3AMBGoFWI/b+v7lnqNMrjzjoB8E0qELY YsLg== 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 Return-Path: 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.50; Sun, 23 Oct 2022 19:28:01 -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 Content-Type: text/plain; charset="yes" Content-Transfer-Encoding: 8bit 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 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