Skip to contentSkip to conversation

clk: mvebu: armada-38x: add support for 1866MHz variants

PATCH In review Ralph Sennhauser 2 participants 3 messages May 24, 2017 – Jun 1, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 clk: mvebu: armada-38x: 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 merged already. This patch is the reminder and intended for 4.13.

Thanks
Ralph
---

Changes since v2:

- Add armada-38x tag to subject
- Add collected Reviewed-by:

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
index 8bccf4e..394aa6f 100644
@@ -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
#1 lore raw
Quoted 16 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) unsupported

---

Hi everyone,

This patch was part of a series adding support for the Linksys WRT3200ACM which got merged already. This patch is the reminder and intended for 4.13.

Quoted 7 lines

Thanks
Ralph
---

Changes since v2:

- Add armada-38x tag to subject

OK sure I'll do that manually.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
#2 lore raw
Quoted 22 lines · On Thu, 1 Jun 2017 00:25:11 -0700 Stephen Boyd <[email protected]> wrote:
Quoted 21 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) unsupported

---

Hi everyone,

This patch was part of a series adding support for the Linksys WRT3200ACM which got merged already. This patch is the reminder and intended for 4.13.

Thanks
Ralph
---

Quoted 6 lines
Quoted 3 lines

Changes since v2:

- Add armada-38x tag to subject

OK sure I'll do that manually.

Thanks
Ralph