Message ID | 1490959839-39816-11-git-send-email-yt.shen@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=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 0E83660351 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2D9E284F7 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7BA828654; Fri, 31 Mar 2017 11:42:08 +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 A6E4E284F7 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 31 Mar 2017 11:42:08 +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=C/bI6q1CjNudBSoNyyR0xr/DE5WbmoRzg+jfLyAlr90=; b=NrM/iNCO3W9xR0 u5rhMkvI+b4Bv3cPgHG9QsBO2lqQ6oVVBsc3JHSK/bHKT8Aq3c0oSp6+em3L7U/xMlRZYOhySZHaG cEev028RraIVLPaVO95O9hoi32LE94t1OYX8vZFx/nVGIf304Zrsaa49nSceCqm6zvzXyTPOv1YwL t98eAFx5ylVKb3g7HaEhDhvRW+sxuATOuO9oiUSOz0Yp+1HSuq8nQgISfoUrso7Tll4Wzg7b3cdxA zfPw6wxRNL6bERrbNiG2eLGNhir+nB0rPswa+etyLQtJuLZzsKkT1+OXse1l9faQpmmgGVBuIR9PK 6+whDDgLpvV+SEn8LCuQ==; 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 1ctuwS-0006bb-01; Fri, 31 Mar 2017 11:42:08 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-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, Daniel Kurtz <djkurtz@chromium.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-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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); }