Message ID | 20181007093905.11253-25-jernej.skrabec@siol.net (mailing list archive) |
---|---|
State | Superseded, 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-2.web.codeaurora.org (Postfix) with ESMTP id 10FDC13BB for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 7 Oct 2018 09:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03EA928A31 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 7 Oct 2018 09:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E832928A77; Sun, 7 Oct 2018 09:48:37 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 7C8D428A31 for <patchwork-linux-arm@patchwork.kernel.org>; Sun, 7 Oct 2018 09:48:37 +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=AOJ9FEG8264sW2mU8dM0mhrv1LZuOEE5lg/m84+VmV0=; b=T8zQrZFfet2zHH 5SonxlrP7/Na5KRhYTC8MzY7chnKerODFggsHKUZec2Ym0iH9kZduL5bgx67e4pG9YvwkW54Yl5il md/h3OL8meZfK8M2TPs+wPXsK6sI6/3puaEbbFpzcP55v/HbBMEZdIxGYCtOp2Q7gmYYsml4hm4mc oblS2zNqe+KO6A4/E/8vABw9E69TAM2hmp6IVohHsWXbEXuO0CxdccMvpWzn3/dS22oJy+g2Tnfd+ Ff0hpKLNshSrbYjjmfwP21a2EYBFpofNLGg3yKijLRCi7PHSPDbsTc1l0uXyXoxiPM9F6Vnva/L36 Do6z7d7JCI1cXPgyQcFQ==; 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 1g95fl-0002YI-8m; Sun, 07 Oct 2018 09:48:25 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g95YP-0006MC-2I for linux-arm-kernel@bombadil.infradead.org; Sun, 07 Oct 2018 09:40:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=6IY1fBGp8+nyMHzFCRXt1KSUunwcRN5jWGPgbG7ePAA=; b=ks3aCtDQdpBZxKI/7PoLdN9Ngz wQV2KrZBVmKkbbCVDBXuKWaQhlMXM3L/4Z8QO4/l2rBR3wcdQCpAKSE5hZMgjAOrGk5twJ1LjtSxd iJ+j6aKCbJwbWJce3fgPftVo1uVnQpurQXViICs8dFf7HHTXuXLSsNNuj8dfX3gri/TQVwsYZLCMo 2dc0zQNA22mg3JzPZD1zvFJCWCuK+HI/Az1GW0Rj6mk1KS2IQoAxi5Dm0dtSXOBHQABmki1ryOByw 2S4bnhJdFht7xnJD93dUKr8rghsa+Jw127AzEt6TJvm1zK3dE8+ER+bdWJvpBcJbfQ1XVOJGeuT+J 4y7wUTgA==; Received: from mailoutvs12.siol.net ([185.57.226.203] helo=mail.siol.net) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g95YL-0007Y8-OA for linux-arm-kernel@lists.infradead.org; Sun, 07 Oct 2018 09:40:47 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id B6E2D520049; Sun, 7 Oct 2018 11:40:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id hE23f8ymFSXZ; Sun, 7 Oct 2018 11:40:17 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 6CD52520456; Sun, 7 Oct 2018 11:40:17 +0200 (CEST) Received: from localhost.localdomain (cpe1-8-82.cable.triera.net [213.161.8.82]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 0128F520A87; Sun, 7 Oct 2018 11:40:14 +0200 (CEST) From: Jernej Skrabec <jernej.skrabec@siol.net> To: maxime.ripard@bootlin.com, wens@csie.org Subject: [PATCH v2 24/29] drm/sun4i: Initialize registers in tcon-top driver Date: Sun, 7 Oct 2018 11:39:00 +0200 Message-Id: <20181007093905.11253-25-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181007093905.11253-1-jernej.skrabec@siol.net> References: <20181007093905.11253-1-jernej.skrabec@siol.net> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181007_054045_923273_9070FFE4 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, architt@codeaurora.org, a.hajda@samsung.com, sboyd@kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, airlied@linux.ie, linux-sunxi@googlegroups.com, robh+dt@kernel.org, Laurent.pinchart@ideasonboard.com, linux-clk@vger.kernel.org, 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 |
Series |
Allwinner H6 DE3 and HDMI support
|
expand
|
diff --git a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c index 3040a79f298f..37158548b447 100644 --- a/drivers/gpu/drm/sun4i/sun8i_tcon_top.c +++ b/drivers/gpu/drm/sun4i/sun8i_tcon_top.c @@ -167,6 +167,13 @@ static int sun8i_tcon_top_bind(struct device *dev, struct device *master, goto err_assert_reset; } + /* + * At least on H6, some registers have some bits set by default + * which may cause issues. Clear them here. + */ + writel(0, regs + TCON_TOP_PORT_SEL_REG); + writel(0, regs + TCON_TOP_GATE_SRC_REG); + /* * TCON TOP has two muxes, which select parent clock for each TCON TV * channel clock. Parent could be either TCON TV or TVE clock. For now
It turns out that TCON TOP registers in H6 SoC have non-zero reset value. This may cause issues if bits are not changed during configuration. To prevent that, initialize registers to 0. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> --- drivers/gpu/drm/sun4i/sun8i_tcon_top.c | 7 +++++++ 1 file changed, 7 insertions(+)