From patchwork Tue Jan 10 11:59:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 9507069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 786DE606E1 for ; Tue, 10 Jan 2017 12:00:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CF2E2022B for ; Tue, 10 Jan 2017 12:00:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61DDD28461; Tue, 10 Jan 2017 12:00:51 +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=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8F172022B for ; Tue, 10 Jan 2017 12:00:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030332AbdAJMAY (ORCPT ); Tue, 10 Jan 2017 07:00:24 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35449 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030876AbdAJMAW (ORCPT ); Tue, 10 Jan 2017 07:00:22 -0500 Received: by mail-pf0-f193.google.com with SMTP id f144so9796371pfa.2; Tue, 10 Jan 2017 04:00:21 -0800 (PST) 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; bh=dlz5d1S/Sb9HG+JvrUNWN0od+1clB1kkPjYVcnNtyyA=; b=E6aycBno976J1I6EWxwfP7xGUgUKAbFxveW9J4VaX0Tyx8aWN8ujAFUrWOCwOkcPkI cUjtSlU0iCEMPsLWxBQw4mYiHbZutrJQERmw6DZgQ8GCcEpxocC4I1GxxIuD2gDs4zIR Ma+mG1z1HUzKvR9XcPTQKmNOmVuNRd5+eHNPBoNrQE7Pw7nK+/OmkEmSbnxD/sv7a8k3 DcavatP4Syrv6/v7jX2dzuFoV9NC8bb/Rrgyp5oo00Lam5I0oBxyf34vE2z9CpTjvAxd XNG5s44kZhu2U2FoCRdlYtVy1SB/04fvETIL4BAqMMvkaRxxGB+MrevlCfO/Dk7wdMt7 QwaQ== X-Gm-Message-State: AIkVDXJxpmRhQT0m2SbyDB8sZFzhzfVN0peUSLgdjj+gkBE4x9lCgOeBULLVoz/SDsViNQ== X-Received: by 10.99.105.70 with SMTP id e67mr3463552pgc.99.1484049621333; Tue, 10 Jan 2017 04:00:21 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id q190sm5230010pfb.51.2017.01.10.04.00.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 Jan 2017 04:00:20 -0800 (PST) From: Jacob Chen To: heiko@sntech.de, mturquette@baylibre.com, sboyd@codeaurora.org Cc: linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, zhangqing@rock-chips.com, zhengxing@rock-chips.com, Jacob Chen Subject: [PATCH 4/4] clk: rockchip: add rk3288 cif_out clock Date: Tue, 10 Jan 2017 19:59:20 +0800 Message-Id: <1484049560-14820-4-git-send-email-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484049560-14820-1-git-send-email-jacob-chen@iotwrt.com> References: <1484049560-14820-1-git-send-email-jacob-chen@iotwrt.com> Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the clocks for the cif block of the rk3288 Signed-off-by: Jacob Chen --- drivers/clk/rockchip/clk-rk3288.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/clk/rockchip/clk-rk3288.c b/drivers/clk/rockchip/clk-rk3288.c index 8047cea..f071c24 100644 --- a/drivers/clk/rockchip/clk-rk3288.c +++ b/drivers/clk/rockchip/clk-rk3288.c @@ -192,6 +192,7 @@ PNAME(mux_uart1_p) = { "uart1_src", "uart1_frac", "xin24m" }; PNAME(mux_uart2_p) = { "uart2_src", "uart2_frac", "xin24m" }; PNAME(mux_uart3_p) = { "uart3_src", "uart3_frac", "xin24m" }; PNAME(mux_uart4_p) = { "uart4_src", "uart4_frac", "xin24m" }; +PNAME(mux_cif_out_p) = { "cif_src", "xin24m" }; PNAME(mux_vip_out_p) = { "vip_src", "xin24m" }; PNAME(mux_mac_p) = { "mac_pll_src", "ext_gmac" }; PNAME(mux_hsadcout_p) = { "hsadc_src", "ext_hsadc" }; @@ -448,6 +449,12 @@ static struct rockchip_clk_branch rk3288_clk_branches[] __initdata = { RK3288_CLKSEL_CON(6), 14, 2, MFLAGS, 8, 6, DFLAGS, RK3288_CLKGATE_CON(3), 15, GFLAGS), + COMPOSITE_NOGATE(0, "cif_src", mux_pll_src_cpll_gpll_p, 0, + RK3288_CLKSEL_CON(26), 8, 1, MFLAGS, 9, 5, DFLAGS), + COMPOSITE_NODIV(SCLK_CIF_OUT, "sclk_cif_out", mux_cif_out_p, 0, + RK3288_CLKSEL_CON(26), 15, 1, MFLAGS, + RK3288_CLKGATE_CON(3), 7, GFLAGS), + GATE(SCLK_HDMI_HDCP, "sclk_hdmi_hdcp", "xin24m", 0, RK3288_CLKGATE_CON(5), 12, GFLAGS), GATE(SCLK_HDMI_CEC, "sclk_hdmi_cec", "xin32k", 0,