Message ID | 1490959839-39816-11-git-send-email-yt.shen@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6206C60351 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FCEE284F7 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4249428654; Fri, 31 Mar 2017 11:42:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C9EC3284F7 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kqDKzm8IcbxAcgANuQpVtD7RMB/APWL28aI//DL38FU=; b=RrOfD0e+Osgif9 xjQSQKSkxUbBP5tBuU6LQkixeluqlpkcmtRkCpVNyw1PAuU/OyhczfgFFGPktKBjaCuX603pIFabJ GxdV9LCq9CsfyqA35XJgedLiMeBO++lRnpFadZm80xztXCRR2gds7l1NNAc8TEnZeWr8A/CRY4LKa KMNWovhxyCRaTJieRZzpZc5uzrsddc2LugIOnYsTQdHA/CHFUSlev8x+7SpAbwwMNSWXJROoVjiJh TwZ/5ps/R8pWMCAwneZdT8QRG9tYItg7l0uO5QTELOQWPzNxSIK7P6QbOuels0NmcqOSv5YNuyMJW K7YlIV1PIgDpHmogSmhA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1ctuwO-0006Xm-N0; Fri, 31 Mar 2017 11:42:04 +0000 Received: from merlin.infradead.org ([205.233.59.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctuw6-0006CR-1U; Fri, 31 Mar 2017 11:41:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xuujD0k9vjsFtxpgV1r6vFUPX1f9iVo1S119+tfo1qs=; b=ttafaww+qhQXlTuPnzqgziW0y by70HWtj0d7zwewxGr6KLiF9gPt5ifygT9TOxn7vYcjRBBtQhjIdncUJfJE+PXMdfqI8gwOkEl7zi 5IJ0KH1oBJ9oa/no1Njb2qDYgGqAcrWtsus+vsIHkWcvFy29YeDrZ77IkkOeQ2yv2suZ903c3kUOg KnYjc8HTpq2SgAgtSmHBax5zD5eeyZoOB57CTGrYKIyeV4JpK84YpmfFT8o1+jb5iPZWeHlBfAcRR QwMLdchp5hYR1v6rSf02QCGlTOYOYDwMeIFr4qlHrmWzmhhn2T60g3kqRJgu7BEyhaM22SO3l+sDI qtNhmeucA==; Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ctumu-0000US-DU; Fri, 31 Mar 2017 11:32:17 +0000 Received: from mtkhts07.mediatek.inc [(172.21.101.69)] by mailgw02.mediatek.com (envelope-from <yt.shen@mediatek.com>) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1246425761; Fri, 31 Mar 2017 19:32:13 +0800 Received: from mtkslt301.mediatek.inc (10.21.14.114) by mtkhts07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.266.1; Fri, 31 Mar 2017 19:32:10 +0800 From: YT Shen <yt.shen@mediatek.com> To: CK Hu <ck.hu@mediatek.com>, Philipp Zabel <p.zabel@pengutronix.de> Subject: [PATCH v13 10/12] drm/mediatek: add non-continuous clock mode and EOT packet control Date: Fri, 31 Mar 2017 19:30:37 +0800 Message-ID: <1490959839-39816-11-git-send-email-yt.shen@mediatek.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490959839-39816-1-git-send-email-yt.shen@mediatek.com> References: <1490959839-39816-1-git-send-email-yt.shen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170331_073216_658612_E00AC529 X-CRM114-Status: GOOD ( 13.98 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, srv_heupstream@mediatek.com, David Airlie <airlied@linux.ie>, thierry.reding@gmail.com, emil.l.velikov@gmail.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, YT Shen <yt.shen@mediatek.com>, Rob Herring <robh+dt@kernel.org>, linux-mediatek@lists.infradead.org, Matthias Brugger <matthias.bgg@gmail.com>, yingjoe.chen@mediatek.com, shaoming chen <shaoming.chen@mediatek.com>, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 2e2cc3a..09528e2 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -431,6 +431,9 @@ static void mtk_dsi_rxtx_control(struct mtk_dsi *dsi) break; } + tmp_reg |= (dsi->mode_flags & MIPI_DSI_CLOCK_NON_CONTINUOUS) << 6; + tmp_reg |= (dsi->mode_flags & MIPI_DSI_MODE_EOT_PACKET) >> 3; + writel(tmp_reg, dsi->regs + DSI_TXRX_CTRL); }