* [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection
@ 2014-09-05 5:49 jianqun
2014-09-05 7:32 ` Heiko Stübner
0 siblings, 1 reply; 3+ messages in thread
From: jianqun @ 2014-09-05 5:49 UTC (permalink / raw)
To: heiko, mturquette, linux-arm-kernel, linux-kernel
Cc: xjq, kever.yang, huangtao, zyw, yzq, zhenfu.fang, cf, kfx
From: xujianqun <xjq@rock-chips.com>
For RK3288, core clock pll source select APLL when bit value is 1, select GPLL
when bit value is 0;
CRU_CLKSEL0_CON [15]
- core_clk_pll_sel
- CORE clock pll source selection
-- 1'b1: select ARM PLL
-- 1'b0: select GENERAL PLL
BUG=none
TEST= "cat /sys/kernel/debug/clk/clk_summary |grep apll" check parent of core clock
Change-Id: I44a528af256da1fad573b4ccf9d0a20ad4cf6d68
Signed-off-by: xujianqun <xjq@rock-chips.com>
---
drivers/clk/rockchip/clk-cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c
index c5b14e9..1725ac7 100644
--- a/drivers/clk/rockchip/clk-cpu.c
+++ b/drivers/clk/rockchip/clk-cpu.c
@@ -136,7 +136,7 @@ static int rockchip_cpuclk_pre_rate_change(struct rockchip_cpuclk *cpuclk,
}
/* select alternate parent */
- writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
+ writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
cpuclk->reg_base + reg_data->core_reg);
/* alternate parent is active now. set the dividers */
@@ -163,7 +163,7 @@ static int rockchip_cpuclk_post_rate_change(struct rockchip_cpuclk *cpuclk,
spin_lock(cpuclk->lock);
/* post-rate change event, re-mux back to primary parent */
- writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
+ writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
cpuclk->reg_base + RK2928_CLKSEL_CON(0));
/* remove any core dividers */
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection
2014-09-05 5:49 [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection jianqun
@ 2014-09-05 7:32 ` Heiko Stübner
2014-09-05 7:38 ` Jianqun
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stübner @ 2014-09-05 7:32 UTC (permalink / raw)
To: jianqun
Cc: mturquette, linux-arm-kernel, linux-kernel, kever.yang, huangtao,
zyw, yzq, zhenfu.fang, cf, kfx
Hi Jianqun,
Am Freitag, 5. September 2014, 13:49:26 schrieb jianqun:
> From: xujianqun <xjq@rock-chips.com>
>
> For RK3288, core clock pll source select APLL when bit value is 1, select
> GPLL when bit value is 0;
>
> CRU_CLKSEL0_CON [15]
> - core_clk_pll_sel
> - CORE clock pll source selection
> -- 1'b1: select ARM PLL
> -- 1'b0: select GENERAL PLL
your patch changes code, I haven't even submitted yet ... so I guess there is
no need to spam maintainers and mailinglists with changes like these :-) .
>
> BUG=none
> TEST= "cat /sys/kernel/debug/clk/clk_summary |grep apll" check parent of
> core clock
>
> Change-Id: I44a528af256da1fad573b4ccf9d0a20ad4cf6d68
and to remember for the future, the ChromeOS, BUG, TEST and Change-Id
shouldn't appear in commits sent upstream.
Heiko
> Signed-off-by: xujianqun <xjq@rock-chips.com>
> ---
> drivers/clk/rockchip/clk-cpu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c
> index c5b14e9..1725ac7 100644
> --- a/drivers/clk/rockchip/clk-cpu.c
> +++ b/drivers/clk/rockchip/clk-cpu.c
> @@ -136,7 +136,7 @@ static int rockchip_cpuclk_pre_rate_change(struct
> rockchip_cpuclk *cpuclk, }
>
> /* select alternate parent */
> - writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
> + writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
> cpuclk->reg_base + reg_data->core_reg);
>
> /* alternate parent is active now. set the dividers */
> @@ -163,7 +163,7 @@ static int rockchip_cpuclk_post_rate_change(struct
> rockchip_cpuclk *cpuclk, spin_lock(cpuclk->lock);
>
> /* post-rate change event, re-mux back to primary parent */
> - writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
> + writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
> cpuclk->reg_base + RK2928_CLKSEL_CON(0));
>
> /* remove any core dividers */
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection
2014-09-05 7:32 ` Heiko Stübner
@ 2014-09-05 7:38 ` Jianqun
0 siblings, 0 replies; 3+ messages in thread
From: Jianqun @ 2014-09-05 7:38 UTC (permalink / raw)
To: Heiko Stübner
Cc: mturquette, linux-arm-kernel, linux-kernel, kever.yang, huangtao,
zyw, yzq, zhenfu.fang, cf, kfx
OK thanks
在 09/05/2014 03:32 PM, Heiko Stübner 写道:
> Hi Jianqun,
>
> Am Freitag, 5. September 2014, 13:49:26 schrieb jianqun:
>> From: xujianqun <xjq@rock-chips.com>
>>
>> For RK3288, core clock pll source select APLL when bit value is 1, select
>> GPLL when bit value is 0;
>>
>> CRU_CLKSEL0_CON [15]
>> - core_clk_pll_sel
>> - CORE clock pll source selection
>> -- 1'b1: select ARM PLL
>> -- 1'b0: select GENERAL PLL
>
> your patch changes code, I haven't even submitted yet ... so I guess there is
> no need to spam maintainers and mailinglists with changes like these :-) .
>
>
>>
>> BUG=none
>> TEST= "cat /sys/kernel/debug/clk/clk_summary |grep apll" check parent of
>> core clock
>>
>> Change-Id: I44a528af256da1fad573b4ccf9d0a20ad4cf6d68
>
> and to remember for the future, the ChromeOS, BUG, TEST and Change-Id
> shouldn't appear in commits sent upstream.
>
>
> Heiko
>
>
>> Signed-off-by: xujianqun <xjq@rock-chips.com>
>> ---
>> drivers/clk/rockchip/clk-cpu.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/clk/rockchip/clk-cpu.c b/drivers/clk/rockchip/clk-cpu.c
>> index c5b14e9..1725ac7 100644
>> --- a/drivers/clk/rockchip/clk-cpu.c
>> +++ b/drivers/clk/rockchip/clk-cpu.c
>> @@ -136,7 +136,7 @@ static int rockchip_cpuclk_pre_rate_change(struct
>> rockchip_cpuclk *cpuclk, }
>>
>> /* select alternate parent */
>> - writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
>> + writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
>> cpuclk->reg_base + reg_data->core_reg);
>>
>> /* alternate parent is active now. set the dividers */
>> @@ -163,7 +163,7 @@ static int rockchip_cpuclk_post_rate_change(struct
>> rockchip_cpuclk *cpuclk, spin_lock(cpuclk->lock);
>>
>> /* post-rate change event, re-mux back to primary parent */
>> - writel(HIWORD_UPDATE(0, 1, reg_data->mux_core_shift),
>> + writel(HIWORD_UPDATE(1, 1, reg_data->mux_core_shift),
>> cpuclk->reg_base + RK2928_CLKSEL_CON(0));
>>
>> /* remove any core dividers */
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-09-05 7:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-05 5:49 [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection jianqun
2014-09-05 7:32 ` Heiko Stübner
2014-09-05 7:38 ` Jianqun
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox