clk: mvebu: add support for 1866MHz variants
Subsystems (2)
PATCH v2 1/1 clk: mvebu: add support for 1866MHz variants
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk.
Noticed by the following warning:
[ 0.000000] Selected CPU frequency (16) unsupported
---
Hi everyone,
This patch was part of a series adding support for the Linksys WRT3200ACM which got mostly merged already. So this one comes as a stand-alone patch intended for 4.13.
Thanks
Ralph
---
Changes since v1:
- Update multipliers for and divisors for l2clk and ddrclk
--- drivers/clk/mvebu/armada-38x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/clk/mvebu/armada-38x.c +4 -3
@@ -49,7 +49,8 @@ static const u32 armada_38x_cpu_frequencies[] __initconst = {0 ,0 ,0 ,0 ,1066 *1000 *1000 ,0 ,0 ,0 ,1332 *1000 *1000 ,0 ,0 ,0 , - 1600 * 1000 * 1000, +1600 *1000 *1000 ,0 ,0 ,0 , + 1866 * 1000 * 1000, };static u32 __init armada_38x_get_cpu_freq (void __iomem *sar)
@@ -79,7 +80,7 @@ static const int armada_38x_cpu_l2_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},
@@ -90,7 +91,7 @@ static const int armada_38x_cpu_ddr_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},
Signature · 1 line
2.10.2
Hi Ralph,
On mar., mai 23 2017, Ralph Sennhauser <[email protected]> wrote:
Adding a word about the fact this patch is for the armada 38x SoC in the title would be nice.
Quoted 6 lines
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk.
Noticed by the following warning:
[ 0.000000] Selected CPU frequency (16) unsupported
I checked your values with the hardware datasheet and they match the documentation:
Thanks,
Gregory
Quoted 56 lines
Signed-off-by Ralph Sennhauser <[email protected]>---
Hi everyone,
This patch was part of a series adding support for the Linksys WRT3200ACM which got mostly merged already. So this one comes as a stand-alone patch intended for 4.13.
Thanks
Ralph
---Changes since v1:
- Update multipliers for and divisors for l2clk and ddrclk
--- drivers/clk/mvebu/armada-38x.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)drivers/clk/mvebu/armada-38x.c +4
-3@@ -49,7 +49,8 @@ static const u32 armada_38x_cpu_frequencies[] __initconst = {0 ,0 ,0 ,0 ,1066 *1000 *1000 ,0 ,0 ,0 ,1332 *1000 *1000 ,0 ,0 ,0 , - 1600 * 1000 * 1000, +1600 *1000 *1000 ,0 ,0 ,0 , + 1866 * 1000 * 1000, };static u32 __init armada_38x_get_cpu_freq (void __iomem *sar)@@ -79,7 +80,7 @@ static const int armada_38x_cpu_l2_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},@@ -90,7 +91,7 @@ static const int armada_38x_cpu_ddr_ratios[32][2] __initconst = { {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, {1, 2}, {0, 1}, {0, 1}, {0, 1}, - {0, 1}, {0, 1}, {0, 1}, {0, 1}, + {1, 2}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1}, {0, 1},Signature · 1 line
2.10.2
Signature · 4 lines
Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 7 lines · On Wed, 24 May 2017 15:48:50 +0200 Gregory CLEMENT…
Hi Ralph,
On mar., mai 23 2017, Ralph Sennhauser <[email protected]>
wrote:Adding a word about the fact this patch is for the armada 38x SoC in the title would be nice.
Agreed.
Quoted 5 lines
Quoted 5 lines
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk.
Quoted 8 lines
Quoted 2 lines
Noticed by the following warning:
[ 0.000000] Selected CPU frequency (16) unsupportedI checked your values with the hardware datasheet and they match the documentation:
Reviewed-by Gregory CLEMENT <[email protected]>
Thanks for checking.
Ralph
Stephen Boyd
AppliedQuoted 9 lines · Ralph Sennhauser
The Linksys WRT3200ACM CPU is clocked at 1866MHz. Add 1866MHz to the list of supported CPU frequencies. Also update multiplier and divisor for the l2clk and ddrclk.
Noticed by the following warning:
[ 0.000000] Selected CPU frequency (16) unsupportedSigned-off-by Ralph Sennhauser <[email protected]>---
Applied to clk-next
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project