Commit 603058f4ab12af8d6662ddec579089361c060cfc

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

dm: cpu: bmips: add BCM3380 support

As far as I know BCM3380 has a fixed CPU frequency since I couldn't find its
PLL registers in any documentation.

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
... ... @@ -96,6 +96,11 @@
96 96 return 0;
97 97 }
98 98  
  99 +static ulong bcm3380_get_cpu_freq(struct bmips_cpu_priv *priv)
  100 +{
  101 + return 333000000;
  102 +}
  103 +
99 104 static ulong bcm6328_get_cpu_freq(struct bmips_cpu_priv *priv)
100 105 {
101 106 unsigned int mips_pll_fcvo;
... ... @@ -190,6 +195,12 @@
190 195 return 2;
191 196 }
192 197  
  198 +static const struct bmips_cpu_hw bmips_cpu_bcm3380 = {
  199 + .get_cpu_desc = bmips_short_cpu_desc,
  200 + .get_cpu_freq = bcm3380_get_cpu_freq,
  201 + .get_cpu_count = bcm6358_get_cpu_count,
  202 +};
  203 +
193 204 static const struct bmips_cpu_hw bmips_cpu_bcm6328 = {
194 205 .get_cpu_desc = bmips_long_cpu_desc,
195 206 .get_cpu_freq = bcm6328_get_cpu_freq,
... ... @@ -290,6 +301,9 @@
290 301  
291 302 static const struct udevice_id bmips_cpu_ids[] = {
292 303 {
  304 + .compatible = "brcm,bcm3380-cpu",
  305 + .data = (ulong)&bmips_cpu_bcm3380,
  306 + }, {
293 307 .compatible = "brcm,bcm6328-cpu",
294 308 .data = (ulong)&bmips_cpu_bcm6328,
295 309 }, {