Commit 05fc9e686ad4f7e529a51cb7e58b0d1f9774df41

Authored by Álvaro Fernández Rojas
Committed by Daniel Schwierzeck
1 parent c4203e1d73

dm: cpu: bmips: add BCM6338 support

BCM6338 has a fixed CPU frequency of 240 MHz.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>

Showing 1 changed file with 14 additions and 0 deletions Side-by-side Diff

drivers/cpu/bmips_cpu.c
... ... @@ -128,6 +128,11 @@
128 128 }
129 129 }
130 130  
  131 +static ulong bcm6338_get_cpu_freq(struct bmips_cpu_priv *priv)
  132 +{
  133 + return 240000000;
  134 +}
  135 +
131 136 static ulong bcm6348_get_cpu_freq(struct bmips_cpu_priv *priv)
132 137 {
133 138 unsigned int tmp, n1, n2, m1;
... ... @@ -207,6 +212,12 @@
207 212 .get_cpu_count = bcm6328_get_cpu_count,
208 213 };
209 214  
  215 +static const struct bmips_cpu_hw bmips_cpu_bcm6338 = {
  216 + .get_cpu_desc = bmips_short_cpu_desc,
  217 + .get_cpu_freq = bcm6338_get_cpu_freq,
  218 + .get_cpu_count = bcm6345_get_cpu_count,
  219 +};
  220 +
210 221 static const struct bmips_cpu_hw bmips_cpu_bcm6348 = {
211 222 .get_cpu_desc = bmips_short_cpu_desc,
212 223 .get_cpu_freq = bcm6348_get_cpu_freq,
... ... @@ -306,6 +317,9 @@
306 317 }, {
307 318 .compatible = "brcm,bcm6328-cpu",
308 319 .data = (ulong)&bmips_cpu_bcm6328,
  320 + }, {
  321 + .compatible = "brcm,bcm6338-cpu",
  322 + .data = (ulong)&bmips_cpu_bcm6338,
309 323 }, {
310 324 .compatible = "brcm,bcm6348-cpu",
311 325 .data = (ulong)&bmips_cpu_bcm6348,