Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422797AbbEVAEW (ORCPT ); Thu, 21 May 2015 20:04:22 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:59070 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422671AbbEVAET (ORCPT ); Thu, 21 May 2015 20:04:19 -0400 From: Ezequiel Garcia To: , , "Mike Turquette" , CC: Andrew Bresticker , James Hartley , , , , James Hogan , Ezequiel Garcia Subject: [PATCH 6/9] clk: pistachio: Propagate rate changes in the MIPS PLL clock sub-tree Date: Thu, 21 May 2015 20:57:40 -0300 Message-ID: <1432252663-31318-7-git-send-email-ezequiel.garcia@imgtec.com> X-Mailer: git-send-email 2.3.3 In-Reply-To: <1432252663-31318-1-git-send-email-ezequiel.garcia@imgtec.com> References: <1432252663-31318-1-git-send-email-ezequiel.garcia@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.100.200.44] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2112 Lines: 46 This commit passes CLK_SET_RATE_PARENT to the "mips_div", "mips_internal_div", and "mips_pll_mux" clocks. This flag is needed for the "mips" clock to propagate rate changes up to the "mips_pll" root clock. Signed-off-by: Govindraj Raja Signed-off-by: Ezequiel Garcia --- drivers/clk/pistachio/clk-pistachio.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/clk/pistachio/clk-pistachio.c b/drivers/clk/pistachio/clk-pistachio.c index 47e2fb1..22a7ebd 100644 --- a/drivers/clk/pistachio/clk-pistachio.c +++ b/drivers/clk/pistachio/clk-pistachio.c @@ -57,9 +57,10 @@ static struct pistachio_fixed_factor pistachio_ffs[] __initdata = { }; static struct pistachio_div pistachio_divs[] __initdata = { - DIV(CLK_MIPS_INTERNAL_DIV, "mips_internal_div", "mips_pll_mux", - 0x204, 2), - DIV(CLK_MIPS_DIV, "mips_div", "mips_internal_div", 0x208, 8), + DIV_F(CLK_MIPS_INTERNAL_DIV, "mips_internal_div", "mips_pll_mux", + 0x204, 2, CLK_SET_RATE_PARENT, 0), + DIV_F(CLK_MIPS_DIV, "mips_div", "mips_internal_div", + 0x208, 8, CLK_SET_RATE_PARENT, 0), DIV_F(CLK_AUDIO_DIV, "audio_div", "audio_mux", 0x20c, 8, 0, CLK_DIVIDER_ROUND_CLOSEST), DIV_F(CLK_I2S_DIV, "i2s_div", "audio_pll_mux", @@ -126,7 +127,8 @@ PNAME(mux_xtal_bt) = { "xtal", "bt_pll" }; static struct pistachio_mux pistachio_muxes[] __initdata = { MUX(CLK_AUDIO_REF_MUX, "audio_refclk_mux", mux_xtal_audio_refclk, 0x200, 0), - MUX(CLK_MIPS_PLL_MUX, "mips_pll_mux", mux_xtal_mips, 0x200, 1), + MUX_F(CLK_MIPS_PLL_MUX, "mips_pll_mux", mux_xtal_mips, + 0x200, 1, CLK_SET_RATE_PARENT), MUX(CLK_AUDIO_PLL_MUX, "audio_pll_mux", mux_xtal_audio, 0x200, 2), MUX(CLK_AUDIO_MUX, "audio_mux", mux_audio_debug, 0x200, 4), MUX(CLK_RPU_V_PLL_MUX, "rpu_v_pll_mux", mux_xtal_rpu_v, 0x200, 5), -- 2.3.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/