Received: by 10.223.185.116 with SMTP id b49csp7925567wrg; Thu, 1 Mar 2018 13:42:00 -0800 (PST) X-Google-Smtp-Source: AG47ELve4QRTRzeOSss+khEAJU+BwkFTDdH10umrHkJalZCkfLKlutMMafX8VEs6Ng0/fSdH9Lps X-Received: by 10.98.202.23 with SMTP id n23mr3393321pfg.52.1519940520593; Thu, 01 Mar 2018 13:42:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519940520; cv=none; d=google.com; s=arc-20160816; b=Mj5WQYQm6ifn6ffiCNt6k4VMKJT5/iSybRUHXF48aGVsyfo2NyVUxX6KLFxaM0ArR9 HvKNMH7gI5TbS4QBU6hrkLruB72cJIyzB6iUqL+bg8r3oROJJpWEoyExY34C5O6Ozwr6 /cNko05GptN4EOChAQ7h1Xe8bWXGz2RV5C8dmuUOAAGRGJahdXjDnm6Jlm/o08jkLR5M LmrdIC3Udu65J3ZEzXN5nJNmXnCeVxyRg0Itt+Al7H6+pNqCW1KVSJ2kfD1Ff0avVCfu ggwmAg8QQ658tzVJInJ7S3UE2XgRU5ZRR9x8ihwOuHfj3hT1BcPNLCHExcMpbowMmz7s MzjQ== 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=TqVuo1gc6VXyA9Wj5+h4JYAIaDUNhuCHhlnxg6Fn3Vg=; b=SG5NSXiwNptQbzh3bzb80ls3pg7geCevbgJP77LvQioOdtX6CbToYLgLvbWJuj8iK8 /MpAwcqQvcOHALHHTL+Wi4lo0zwmj5egk8u1t/EkvUBoRF3LN7OPmXQVl8FIdulBpaKT A1SIJlPLq+ER9xKH6YZkehr3RgRqQBlR4AAUAKQMetZPSt9WAe1L3ExUNrxJ56C6n5+7 LyMqjUQ9j55I0c73Dbnb96OsyT/ZA8HVSQf8EQB428Ny3AUsaVrJWXqJc8f2HOsYdr8d VoXRq5ijGykIbr1yrRk9PhnhOafVKVQmNm3872lN7huOofwo+No3cZ+KZcLFv3t7X8q9 C0VA== 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 m13si2938476pgd.641.2018.03.01.13.41.45; Thu, 01 Mar 2018 13:42:00 -0800 (PST) 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 S1162129AbeCAVfG (ORCPT + 99 others); Thu, 1 Mar 2018 16:35:06 -0500 Received: from mailoutvs4.siol.net ([213.250.19.137]:33083 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161792AbeCAVfC (ORCPT ); Thu, 1 Mar 2018 16:35:02 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 68639522F8C; Thu, 1 Mar 2018 22:35:00 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rhD9BNcGrWzf; Thu, 1 Mar 2018 22:35:00 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id EB1C8522F8A; Thu, 1 Mar 2018 22:34:59 +0100 (CET) Received: from localhost.localdomain (cpe-86-58-68-135.ftth.triera.net [86.58.68.135]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id 94BBC522F8C; Thu, 1 Mar 2018 22:34:57 +0100 (CET) From: Jernej Skrabec To: maxime.ripard@free-electrons.com, wens@csie.org, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@kernel.org Cc: jernej.skrabec@siol.net, 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 v3 03/16] clk: sunxi-ng: h3: h5: Allow some clocks to set parent rate Date: Thu, 1 Mar 2018 22:34:29 +0100 Message-Id: <20180301213442.16677-4-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301213442.16677-1-jernej.skrabec@siol.net> References: <20180301213442.16677-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some units have to be able to set it's own clock precisely to work correctly. Allow them to do so by adding CLK_SET_RATE_PARENT flag. Add this flag to DE, TCON and HDMI clocks. Signed-off-by: Jernej Skrabec --- drivers/clk/sunxi-ng/ccu-sun8i-h3.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c b/drivers/clk/sunxi-ng/ccu-sun8i-h3.c index b9f39078c0b2..77ed0b0ba681 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-h3.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-h3.c @@ -452,11 +452,13 @@ static SUNXI_CCU_GATE(dram_ts_clk, "dram-ts", "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 const char * const tcon_parents[] = { "pll-video" }; static SUNXI_CCU_M_WITH_MUX_GATE(tcon_clk, "tcon", tcon_parents, - 0x118, 0, 4, 24, 3, BIT(31), 0); + 0x118, 0, 4, 24, 3, BIT(31), + CLK_SET_RATE_PARENT); static const char * const tve_parents[] = { "pll-de", "pll-periph1" }; static SUNXI_CCU_M_WITH_MUX_GATE(tve_clk, "tve", tve_parents, @@ -487,7 +489,8 @@ static SUNXI_CCU_GATE(avs_clk, "avs", "osc24M", static const char * const hdmi_parents[] = { "pll-video" }; 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_ddc_clk, "hdmi-ddc", "osc24M", 0x154, BIT(31), 0); -- 2.16.2