From: xjq@rock-chips.com (jianqun)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection
Date: Fri, 5 Sep 2014 13:49:26 +0800 [thread overview]
Message-ID: <1409896166-32732-1-git-send-email-xjq@rock-chips.com> (raw)
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
next reply other threads:[~2014-09-05 5:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-05 5:49 jianqun [this message]
2014-09-05 7:32 ` [PATCH] Rockchip: RK3288: CRU: swap value of bit for CORE clock pll source selection Heiko Stübner
2014-09-05 7:38 ` Jianqun
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1409896166-32732-1-git-send-email-xjq@rock-chips.com \
--to=xjq@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox