Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5880276imm; Sat, 19 May 2018 11:36:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoHQdT8MwsSedyAgOTLa9ASvtqN5vSJOxcb29AO31ZAICxMCuhqLAs0o5dd+f+k4qCizD19 X-Received: by 2002:a62:883:: with SMTP id 3-v6mr14302515pfi.154.1526754979665; Sat, 19 May 2018 11:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526754979; cv=none; d=google.com; s=arc-20160816; b=nNgcNGZP8iDADfhhmzuLGKDlaGXmsxSlGQbM+HAFFQXgxxkEk8n4/j6Bq/UjHDDnTt J027c2Tfvuc/mRjv3TG4EY1Cz6jQjD7OpIGyt6WJIxxIhV4cZUNXgVWlxPWo572dAoxd 6qsCyVFH/rj9tGHw2J3tN5xx3CZ+nYTYe3nhSXhHFQ27f6iGsu/LDdwpNslqXqLwx4nL ACWoaTnWlmYoQDGeJnREpnsOOsLo2QELttA0NykkIRMzZ3NVgdK/L9q1SAOSASqsTKmm YzFDgUXxb0LOg17ezIw+LhyJcG1XWZMIi9TKWvozGTOyE8oEODnlWPG0a5x98X6oZa+h Q29A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=QtROvFl8KDbKjHDmjYzohrc60UiGNJs7457eIOqebCE=; b=teIbUCW8TRZvTkk3M8Eskmry3jG+lvdf0UyTarN48TCw8vXHQWGXO2hTukmmGNKTZ0 BFb2hFDMHMvT53aPnuzUSCrc9rDoAy9vgon8kq2jkSbazJGTMnRNubRQEYvgbZe4pVGc pxOTEYz2TuPRrCTS3joqrFpZ21gHzG0ChPV4rOdSETpHZKfpngzQZ0kSqL0rds+th3SK DPhiUUrEY1zLgtW1lUlbdIeOpYPElfy4hC8Hd33jnIQTk6upJtMMQnRTZI5qD7X8SwDM yPDpZFcGRheHZjceVqfgke/34ZMVRxZkMtQxenXaRrGBL7p8DNUNZByz+gyV53ugrThP 1iUA== 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 h10-v6si8045928pgp.496.2018.05.19.11.36.05; Sat, 19 May 2018 11:36:19 -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 S1752612AbeESSci (ORCPT + 99 others); Sat, 19 May 2018 14:32:38 -0400 Received: from mailout7.siol.net ([213.250.19.134]:34663 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752590AbeESScc (ORCPT ); Sat, 19 May 2018 14:32:32 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id C440352047D; Sat, 19 May 2018 20:32:30 +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 1fatTeNt3K_8; Sat, 19 May 2018 20:32:30 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 33C175206A0; Sat, 19 May 2018 20:32:30 +0200 (CEST) Received: from localhost.localdomain (unknown [194.152.15.144]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id B03095207DF; Sat, 19 May 2018 20:32:27 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Cc: mark.rutland@arm.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 02/15] clk: sunxi-ng: r40: Allow setting parent rate to display related clocks Date: Sat, 19 May 2018 20:31:14 +0200 Message-Id: <20180519183127.2718-3-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180519183127.2718-1-jernej.skrabec@siol.net> References: <20180519183127.2718-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Display related peripherals need precise clocks to operate correctly. Allow DE2, TCONs and HDMI to set parent clock. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-r40.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c index c16a62a7bdbd..fa5317719684 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-r40.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-r40.c @@ -655,7 +655,8 @@ static SUNXI_CCU_GATE(dram_deinterlace_clk, "dram-deinterlace", "dram", static const char * const de_parents[] = { "pll-periph0-2x", "pll-de" }; static SUNXI_CCU_M_WITH_MUX_GATE(de_clk, "de", de_parents, - 0x104, 0, 4, 24, 3, BIT(31), 0); + 0x104, 0, 4, 24, 3, BIT(31), + CLK_SET_RATE_PARENT); static SUNXI_CCU_M_WITH_MUX_GATE(mp_clk, "mp", de_parents, 0x108, 0, 4, 24, 3, BIT(31), 0); @@ -667,9 +668,11 @@ static SUNXI_CCU_MUX_WITH_GATE(tcon_lcd0_clk, "tcon-lcd0", tcon_parents, static SUNXI_CCU_MUX_WITH_GATE(tcon_lcd1_clk, "tcon-lcd1", tcon_parents, 0x114, 24, 3, BIT(31), CLK_SET_RATE_PARENT); static SUNXI_CCU_M_WITH_MUX_GATE(tcon_tv0_clk, "tcon-tv0", tcon_parents, - 0x118, 0, 4, 24, 3, BIT(31), 0); + 0x118, 0, 4, 24, 3, BIT(31), + CLK_SET_RATE_PARENT); static SUNXI_CCU_M_WITH_MUX_GATE(tcon_tv1_clk, "tcon-tv1", tcon_parents, - 0x11c, 0, 4, 24, 3, BIT(31), 0); + 0x11c, 0, 4, 24, 3, BIT(31), + CLK_SET_RATE_PARENT); static const char * const deinterlace_parents[] = { "pll-periph0", "pll-periph1" }; @@ -699,7 +702,8 @@ static SUNXI_CCU_GATE(avs_clk, "avs", "osc24M", static const char * const hdmi_parents[] = { "pll-video0", "pll-video1" }; static SUNXI_CCU_M_WITH_MUX_GATE(hdmi_clk, "hdmi", hdmi_parents, - 0x150, 0, 4, 24, 2, BIT(31), 0); + 0x150, 0, 4, 24, 2, BIT(31), + CLK_SET_RATE_PARENT); static SUNXI_CCU_GATE(hdmi_slow_clk, "hdmi-slow", "osc24M", 0x154, BIT(31), 0); -- 2.17.0