From: Elaine Zhang <zhangqing@rock-chips.com>
To: mturquette@baylibre.com, sboyd@codeaurora.org, heiko@sntech.de
Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
robh+dt@kernel.org, mark.rutland@arm.com,
devicetree@vger.kernel.org, xxx@rock-chips.com,
xf@rock-chips.com, huangtao@rock-chips.com,
shawn.lin@rock-chips.com, andy.yan@rock-chips.com,
Elaine Zhang <zhangqing@rock-chips.com>
Subject: [PATCH v3 4/9] clk: rockchip: support more rates for cpuclk
Date: Tue, 8 Aug 2017 15:15:42 +0800 [thread overview]
Message-ID: <1502176547-30817-5-git-send-email-zhangqing@rock-chips.com> (raw)
In-Reply-To: <1502176547-30817-1-git-send-email-zhangqing@rock-chips.com>
fix up the cpuclk rates table for support more freqs.
fix up the mux_core_mask describe error.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
---
drivers/clk/rockchip/clk-rv1108.c | 23 +++++++++++++++++++----
1 file changed, 19 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/rockchip/clk-rv1108.c b/drivers/clk/rockchip/clk-rv1108.c
index 7c05ab366348..3c670db16e18 100644
--- a/drivers/clk/rockchip/clk-rv1108.c
+++ b/drivers/clk/rockchip/clk-rv1108.c
@@ -93,9 +93,24 @@ enum rv1108_plls {
}
static struct rockchip_cpuclk_rate_table rv1108_cpuclk_rates[] __initdata = {
- RV1108_CPUCLK_RATE(816000000, 4),
- RV1108_CPUCLK_RATE(600000000, 4),
- RV1108_CPUCLK_RATE(312000000, 4),
+ RV1108_CPUCLK_RATE(1608000000, 7),
+ RV1108_CPUCLK_RATE(1512000000, 7),
+ RV1108_CPUCLK_RATE(1488000000, 5),
+ RV1108_CPUCLK_RATE(1416000000, 5),
+ RV1108_CPUCLK_RATE(1392000000, 5),
+ RV1108_CPUCLK_RATE(1296000000, 5),
+ RV1108_CPUCLK_RATE(1200000000, 5),
+ RV1108_CPUCLK_RATE(1104000000, 5),
+ RV1108_CPUCLK_RATE(1008000000, 5),
+ RV1108_CPUCLK_RATE(912000000, 5),
+ RV1108_CPUCLK_RATE(816000000, 3),
+ RV1108_CPUCLK_RATE(696000000, 3),
+ RV1108_CPUCLK_RATE(600000000, 3),
+ RV1108_CPUCLK_RATE(500000000, 3),
+ RV1108_CPUCLK_RATE(408000000, 1),
+ RV1108_CPUCLK_RATE(312000000, 1),
+ RV1108_CPUCLK_RATE(216000000, 1),
+ RV1108_CPUCLK_RATE(96000000, 1),
};
static const struct rockchip_cpuclk_reg_data rv1108_cpuclk_data = {
@@ -105,7 +120,7 @@ enum rv1108_plls {
.mux_core_alt = 1,
.mux_core_main = 0,
.mux_core_shift = 8,
- .mux_core_mask = 0x1,
+ .mux_core_mask = 0x3,
};
PNAME(mux_pll_p) = { "xin24m", "xin24m"};
--
1.9.1
next prev parent reply other threads:[~2017-08-08 7:15 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-08 7:15 [PATCH v3 0/9] clk: rockchip: support clk for RV1108 Soc Elaine Zhang
2017-08-08 7:15 ` [PATCH v3 1/9] clk: rockchip: add more clk ids for rv1108 Elaine Zhang
2017-08-08 15:35 ` Heiko Stuebner
2017-08-08 7:15 ` [PATCH v3 2/9] clk: rockchip: rename the clk id for HCLK_I2S1_2CH Elaine Zhang
2017-08-08 15:35 ` Heiko Stuebner
2017-08-08 7:15 ` Elaine Zhang [this message]
2017-08-08 15:10 ` [PATCH v3 4/9] clk: rockchip: support more rates for cpuclk Heiko Stuebner
2017-08-08 7:17 ` [PATCH v3 5/9] clk: rockchip: fix up the pll clks error for rv1108 SoC Elaine Zhang
2017-08-08 15:11 ` Heiko Stuebner
2017-08-08 7:18 ` [PATCH v3 7/9] clk: rockchip: fix up some clks describe " Elaine Zhang
2017-08-08 15:36 ` Heiko Stuebner
[not found] ` <1502176547-30817-1-git-send-email-zhangqing-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2017-08-08 7:15 ` [PATCH v3 3/9] clk: rockchip: fix up the indentation stuff for RV1108 SoC Elaine Zhang
2017-08-08 15:35 ` Heiko Stuebner
2017-08-08 7:18 ` [PATCH v3 6/9] clk: rockchip: support more clks for rv1108 Elaine Zhang
2017-08-08 15:36 ` Heiko Stuebner
2017-08-08 7:19 ` [PATCH v3 8/9] clk: rockchip: rename some of clks for rv1108 SoC Elaine Zhang
2017-08-08 15:36 ` Heiko Stuebner
2017-08-08 7:19 ` [PATCH v3 9/9] clk: rockchip: add some critical clocks " Elaine Zhang
2017-08-08 15:37 ` Heiko Stuebner
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=1502176547-30817-5-git-send-email-zhangqing@rock-chips.com \
--to=zhangqing@rock-chips.com \
--cc=andy.yan@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=huangtao@rock-chips.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=mturquette@baylibre.com \
--cc=robh+dt@kernel.org \
--cc=sboyd@codeaurora.org \
--cc=shawn.lin@rock-chips.com \
--cc=xf@rock-chips.com \
--cc=xxx@rock-chips.com \
/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;
as well as URLs for NNTP newsgroup(s).