From patchwork Sat Nov 3 10:08:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10666611 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4BC1113BF for ; Sat, 3 Nov 2018 10:33:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A68A2AE8F for ; Sat, 3 Nov 2018 10:33:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D6F62AE91; Sat, 3 Nov 2018 10:33:03 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 D5C9E2AE8F for ; Sat, 3 Nov 2018 10:33:02 +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=v1BzzUfz7xEL3OhO0vusOv2tR60mrscWbKTteHT5lC0=; b=hrEWXFSdS1k9wL +mOXRGW3ct78NhRRxW15Y4nShQHJzAFGlATG7jNv+QqWcTV74TT44/Wlv7FiWDOTVKrx1jUAczUl3 ab36YSvwPPwWIVLIUSVuCJl1Ybywm8TgxE691PKG82v4+B9iqBJD7O8katIpTLaGz9GgHiHZ4DJWi WUPJe83wfq0gMEC5rpS+EOCxv7GaFC0U5hYW7oadrpzhuOpM0okCEkGNIogrZ/q9tkMSP8mLMudgn Y0a9I2aSlHgeMxUOMgOJ7cuLIOwds25udPgODJvopoy9TYZN7yYGi9GO9J8AHfKqDo7iIMN1fiI2+ AGVpBUyv+A9i3pjMstOQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gItEj-0004D9-RA; Sat, 03 Nov 2018 10:33:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gItEd-00040r-J3 for linux-arm-kernel@bombadil.infradead.org; Sat, 03 Nov 2018 10:32:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type: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=RBoHpvI+yjf+sOpHt/smPITCJdlWMb7A2BR5EeBkj9A=; b=MsrTMELKZUWoqGBBR93ccfQwDj d52FUXpWDMKyvXskXQsF8F81nC/MCHdTsRljzI6iK7a0Ueir/4gSMQaag/1fw1Q6w7rysNr1XpSb/ x2+AOuiRDHmr/kL4vTqcFV1kkSTp0vOh0snL04kYZhYKvp8RHdfOY+nycsTG5qC3LAqh5MO8yzUwE mNGZxnpou+a4E1fFTiD2ZpPlYstZLTMUfH4Tfb3ag9xOp0Zy7aDPn9F5/ZY6CCn5gI7+MOsBz8UeL TjDaLpD27Z828LiNZDZDpPUOYSf3fBQcCgh/6Al6xedS/SPXtiP7luVe6Wfq0CtNjWkdlOIAnxsHu e3rXFRrQ==; Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gIssa-0003o7-LN for linux-arm-kernel@lists.infradead.org; Sat, 03 Nov 2018 10:10:11 +0000 Received: by mail-pg1-x543.google.com with SMTP id q5-v6so2068895pgv.0 for ; Sat, 03 Nov 2018 03:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RBoHpvI+yjf+sOpHt/smPITCJdlWMb7A2BR5EeBkj9A=; b=iMvvWPRh/PdJ5rtKtCdSpfgbDPVzDn/8c4ZPlOrvAWDzuKwIpoAR2hxmnUl4yB6mYy tM9DByFgKieSQWbZo4ian3Uc9mwNM8hHNbJyIKBg9WB2hz7wBK0HyMFrM/s/+MCVei0O rYXMZROP/2yYMI0VBrABhOSgPHlynieKKnFOQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RBoHpvI+yjf+sOpHt/smPITCJdlWMb7A2BR5EeBkj9A=; b=hSXzdHYUDFDvbIRkfLmNeJRyzeYkt1sagJC3Xbz59VgSR4b0aU3bBF3U77iSkaDhHV UuwSC0HERwUsVGnYcEhnf1oYyptk7tUPNkgwqLhDw4k2C8O9tiDxJraIP7W7IhBoXFr3 Xfl5uim2T8IkHKMXpKqXA0+eA+3tA0du0JeegqLx7wi3laSrzam6DXJCjNBGysisd+hK IzPKakby+7WVdwlPnChGhCJeIsQbq2rLfw139B3NIs4yU2DZMB1pGI0VIhJ4d2auZKgW 5U7GWQfaOCuA8atQGZsHzZDGW3hWl8AY3PN5ZevZzftHZlPy1GD12udLYxOlDe2YrbNm AfxQ== X-Gm-Message-State: AGRZ1gJPHkPy+Bldlb4qiZ7lRPg7DWgr7vyiTkR+kWJhcO94YufngsBq u58ox5HaWVEuIk0ULZO7KAEt7Q== X-Google-Smtp-Source: AJdET5fvkLH/Lzgeh3GeP6t+bSHKP1D/+JGthSpCBYjf7HluzjfCeocHOInlOwAvJHC2dzASgahvVg== X-Received: by 2002:a63:460a:: with SMTP id t10-v6mr13818801pga.197.1541239799315; Sat, 03 Nov 2018 03:09:59 -0700 (PDT) Received: from localhost.localdomain ([2405:204:6094:3f7a:ed0a:fb74:1220:defe]) by smtp.gmail.com with ESMTPSA id z79-v6sm28466823pfl.33.2018.11.03.03.09.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Nov 2018 03:09:58 -0700 (PDT) From: Jagan Teki To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com Subject: [PATCH 05/10] drm/sun4i: sun6i_mipi_dsi: Enable burst mode Date: Sat, 3 Nov 2018 15:38:55 +0530 Message-Id: <20181103100900.30313-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181103100900.30313-1-jagan@amarulasolutions.com> References: <20181103100900.30313-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181103_101008_695332_ED30BEF2 X-CRM114-Status: GOOD ( 13.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Enable video_mode_burst bit from dsi base control register for burst mode display panels. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index b6c01891df36..b18a01361f11 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -421,6 +421,10 @@ static void sun6i_dsi_setup_burst(struct sun6i_dsi *dsi, regmap_write(dsi->regs, SUN6I_DSI_BURST_LINE_REG, SUN6I_DSI_BURST_LINE_NUM(line_num) | SUN6I_DSI_BURST_LINE_SYNC_POINT(sync_point)); + + regmap_read(dsi->regs, SUN6I_DSI_BASIC_CTL_REG, &val); + val |= SUN6I_DSI_BASIC_CTL_VIDEO_BURST; + regmap_write(dsi->regs, SUN6I_DSI_BASIC_CTL_REG, val); } static void sun6i_dsi_setup_inst_loop(struct sun6i_dsi *dsi,