Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3424132yba; Tue, 7 May 2019 00:36:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqzoRJoLSSsm2GqYx5K+gH4IXMXInr5+vtWNBS9DwdCv/svvbL2NbnVFH4D5nae/0/ZJHlru X-Received: by 2002:a17:902:324:: with SMTP id 33mr30289442pld.284.1557214609949; Tue, 07 May 2019 00:36:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557214609; cv=none; d=google.com; s=arc-20160816; b=Z1hjEN+dO/dP3nllvQlTPx1rTgFYFVQUgkfDwecM8eVi0lOEUWxyL1NcEsjSOKcQNM 17p3+8nHvmePug5YA+EhAz4djpwsb3NyeutwGkNIZNGInaHdbJodenI9drMofQU4yvDi okRSZ+BPOHHL21C4fBVMolP6g1p848XnU8BxrTQ3o8jyBLODYJXaf6huW906F9PtXkxm VMH4n/h6QCKHVttglcVs/r/AAU4S6yySs4UZbXBorZVAa+H0SblIaTp5gE/6OoNJCLJl nu1aDtv09d6jZBXF/zGpZiiNGH+0sHpNGrUK1h6dNPHYPimRq94y2Ls7RD5N/Dy9IkJb yjiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=06qr5La2wHKWaeDMA37zobHnvy+vDtnvi8ARt/qnTw0=; b=jaYjAFtLGn0bdr6HT3Br6dQWIJ5lOsC5ku2Em5FZb23pBApRPiWWEy0fEdUN1IGvxx kM8v5XWohhzIqugDufucV6O8bhlsH0/lS0yhohDMGPAIEA9CJklJJ2jCNb9G9fI3FgPu dX+Bx2kqaj9dNap9eGxkJKIGbcVHDwuahJaCwO80REHPrNWbVoRBgsljimHS4UyIwmAk XXbwaGzslSjVO1kjOzq6zhwPmnwPfGUlSvl2Bc+HbWRtNYT+yiM/OWlsSLtshcCpz6oC QXun8vKIWdArlgZOajr6X7JunJ7q+tWYAFrwS023nO5Q9/oqQG9b2RN/krfNU0HJH8Ah XrCw== 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 m186si20027154pfb.96.2019.05.07.00.36.34; Tue, 07 May 2019 00:36:49 -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 S1726810AbfEGHfh (ORCPT + 99 others); Tue, 7 May 2019 03:35:37 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:15356 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726276AbfEGHff (ORCPT ); Tue, 7 May 2019 03:35:35 -0400 X-UUID: 61e10e502b6a4bb7801dfbedde110a53-20190507 X-UUID: 61e10e502b6a4bb7801dfbedde110a53-20190507 Received: from mtkcas34.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1757909939; Tue, 07 May 2019 15:35:30 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS33DR.mediatek.inc (172.27.6.106) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 7 May 2019 15:35:28 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 7 May 2019 15:35:28 +0800 Message-ID: <1557214528.3498.3.camel@mtksdaap41> Subject: Re: [v3 2/3] drm/mediatek: dpi dual edge support From: CK Hu To: Jitao Shi CC: Rob Herring , Pawel Moll , "Mark Rutland" , Ian Campbell , Kumar Gala , , David Airlie , "Matthias Brugger" , Thierry Reding , "Ajay Kumar" , Inki Dae , "Rahul Sharma" , Sean Paul , Vincent Palatin , Andy Yan , Philipp Zabel , "Russell King" , , , , , , , Sascha Hauer , , , , , Date: Tue, 7 May 2019 15:35:28 +0800 In-Reply-To: <20190416055242.75764-3-jitao.shi@mediatek.com> References: <20190416055242.75764-1-jitao.shi@mediatek.com> <20190416055242.75764-3-jitao.shi@mediatek.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jitao: On Tue, 2019-04-16 at 13:52 +0800, Jitao Shi wrote: Where is the commit message? I think you could introduce what is dual edge (Maybe it's trivial for you, but not for me) Regards, CK > Signed-off-by: Jitao Shi > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c > index 22e68a100e7b..66405159141a 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > @@ -117,6 +117,7 @@ struct mtk_dpi_conf { > unsigned int (*cal_factor)(int clock); > u32 reg_h_fre_con; > bool edge_sel_en; > + bool dual_edge; > }; > > static void mtk_dpi_mask(struct mtk_dpi *dpi, u32 offset, u32 val, u32 mask) > @@ -353,6 +354,13 @@ static void mtk_dpi_config_disable_edge(struct mtk_dpi *dpi) > mtk_dpi_mask(dpi, dpi->conf->reg_h_fre_con, 0, EDGE_SEL_EN); > } > > +static void mtk_dpi_enable_dual_edge(struct mtk_dpi *dpi) > +{ > + mtk_dpi_mask(dpi, DPI_DDR_SETTING, DDR_EN | DDR_4PHASE, > + DDR_EN | DDR_4PHASE); > + mtk_dpi_mask(dpi, DPI_OUTPUT_SETTING, EDGE_SEL, EDGE_SEL); > +} > + > static void mtk_dpi_config_color_format(struct mtk_dpi *dpi, > enum mtk_dpi_out_color_format format) > { > @@ -509,6 +517,8 @@ static int mtk_dpi_set_display_mode(struct mtk_dpi *dpi, > mtk_dpi_config_color_format(dpi, dpi->color_format); > mtk_dpi_config_2n_h_fre(dpi); > mtk_dpi_config_disable_edge(dpi); > + if (dpi->conf->dual_edge) > + mtk_dpi_enable_dual_edge(dpi); > mtk_dpi_sw_reset(dpi, false); > > return 0;