Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1917358imu; Sat, 5 Jan 2019 09:50:29 -0800 (PST) X-Google-Smtp-Source: AFSGD/WqWsbnSHX22JgbRCLTQvZbCdSqtR7H2/ocqDVdPrgmaXu2aXVcJMtpbWdJ6HvMSePFVsWt X-Received: by 2002:a62:4c:: with SMTP id 73mr56220643pfa.24.1546710629772; Sat, 05 Jan 2019 09:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546710629; cv=none; d=google.com; s=arc-20160816; b=HX0o9h8rWMUnOI7czjhtapwjbrTDtPhYFFMmMoZhxeUPryvVgnT9RGkS6nB9a3ZFwU AWTPnrKrPegz7iedn/KewpfQ8+0X67R5MSRMEWJq7eVOQa8GxyAoKnn3B3e0E8llv2jH hjCWdjbwmHjLZ34DfNiTO1Tq5J+40UIDtpc05OCzwmKL//YhZ/Tx9/ezL/AEINHveH4N 7VwfcyZpAmyNjUk36w3WXMAtbbTazJLyzZmInLTSmq7U13jDemo7cCDdGGupYtLDcPgO 8UOdbKoW7MHhzvvxU2ggAsTmBjYYsw+2Cu8r8johWWgixEgzfmPRzTysMINTOi1gqJyZ JDiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kXv5rmzaOZ43C/NcwkMbP34oXRl/G7ESbopRB1CZ8cI=; b=YYAwHQ2CDxCWVW4nWOEz8HOcJseqYZJxuqpKMoXObuQnY37g45SL5M74FacSaPgAvP rboSoWPFU6CH0FwgkiBpRuVUhhV3OoBqBgQ1uJV9u9YdLpc20Wq75K7D0Qt4cAXlIsfk 0JtUwdccnmakuf3RGRyPjtl8Qyl65ZRR3guOoplG+N9Wrq2VtqmeUVDW3xxj5r9SpuYz I5iipm4RklaBJc7JoCeCphqAXKJni3wBIE4W1x8Q7rISm/c5oECtd18V1j2nCmqoNMZ6 gGyaEiufeLblYFdrmg9udkZ2cyqwX4k3v6yZDIsRweRq4qpa6sFPeG6XyyyP+EA/CepA FRaw== 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 f11si54715924plr.341.2019.01.05.09.50.13; Sat, 05 Jan 2019 09:50:29 -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 S1726443AbfAERtA (ORCPT + 99 others); Sat, 5 Jan 2019 12:49:00 -0500 Received: from kozue.soulik.info ([108.61.200.231]:40158 "EHLO kozue.soulik.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfAERtA (ORCPT ); Sat, 5 Jan 2019 12:49:00 -0500 Received: from misaki.sumomo.pri (unknown [IPv6:2001:470:b30d:2:c604:15ff:0:a00]) by kozue.soulik.info (Postfix) with ESMTPA id 91048101714; Sun, 6 Jan 2019 02:49:36 +0900 (JST) From: Randy Li To: linux-rockchip@lists.infradead.org Cc: Randy Li , mturquette@baylibre.com, sboyd@kernel.org, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, zhangqing@rock-chips.com, geert+renesas@glider.be Subject: [PATCH 1/3] clk: rockchip: add video clk parents for rk3399 Date: Sun, 6 Jan 2019 01:48:35 +0800 Message-Id: <20190105174837.19378-2-ayaka@soulik.info> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190105174837.19378-1-ayaka@soulik.info> References: <20190105174837.19378-1-ayaka@soulik.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Video codec won't work properly with a clock too low nor too high. We need to export them, allowing the device tree to assign a suitable clocks for them. Signed-off-by: Randy Li --- drivers/clk/rockchip/clk-rk3399.c | 5 +++-- include/dt-bindings/clock/rk3399-cru.h | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3399.c b/drivers/clk/rockchip/clk-rk3399.c index 5a628148f3f0..fe6cebcb26b6 100644 --- a/drivers/clk/rockchip/clk-rk3399.c +++ b/drivers/clk/rockchip/clk-rk3399.c @@ -740,7 +740,8 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = { RK3399_CLKGATE_CON(15), 6, GFLAGS), /* vcodec */ - COMPOSITE(0, "aclk_vcodec_pre", mux_pll_src_cpll_gpll_npll_ppll_p, 0, + COMPOSITE(ACLK_VCODEC_PRE, "aclk_vcodec_pre", + mux_pll_src_cpll_gpll_npll_ppll_p, 0, RK3399_CLKSEL_CON(7), 6, 2, MFLAGS, 0, 5, DFLAGS, RK3399_CLKGATE_CON(4), 0, GFLAGS), COMPOSITE_NOMUX(0, "hclk_vcodec_pre", "aclk_vcodec_pre", 0, @@ -764,7 +765,7 @@ static struct rockchip_clk_branch rk3399_clk_branches[] __initdata = { RK3399_CLKSEL_CON(9), 14, 2, MFLAGS, 8, 5, DFLAGS, RK3399_CLKGATE_CON(4), 5, GFLAGS), - COMPOSITE(0, "aclk_vdu_pre", mux_pll_src_cpll_gpll_npll_ppll_p, 0, + COMPOSITE(ACLK_VDU_PRE, "aclk_vdu_pre", mux_pll_src_cpll_gpll_npll_ppll_p, 0, RK3399_CLKSEL_CON(8), 6, 2, MFLAGS, 0, 5, DFLAGS, RK3399_CLKGATE_CON(4), 2, GFLAGS), COMPOSITE_NOMUX(0, "hclk_vdu_pre", "aclk_vdu_pre", 0, diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 22cb1dfa9004..dd13554aaf76 100644 --- a/include/dt-bindings/clock/rk3399-cru.h +++ b/include/dt-bindings/clock/rk3399-cru.h @@ -219,6 +219,8 @@ #define ACLK_GIC_PRE 262 #define ACLK_VOP0_PRE 263 #define ACLK_VOP1_PRE 264 +#define ACLK_VCODEC_PRE 265 +#define ACLK_VDU_PRE 266 /* pclk gates */ #define PCLK_PERIHP 320 -- 2.20.1