Skip to content

Commit

Permalink
MIPS: lantiq: Return correct value for fpi clock on ar9
Browse files Browse the repository at this point in the history
Some configurations of AR9 reported the incorrect speed for the fpi bus.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11448/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
John Crispin authored and Ralf Baechle committed Nov 11, 2015
1 parent 69ebed7 commit 1601078
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/mips/lantiq/xway/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ unsigned long ltq_ar9_fpi_hz(void)
unsigned long sys = ltq_ar9_sys_hz();

if (ltq_cgu_r32(CGU_SYS) & BIT(0))
return sys;
return sys >> 1;
return sys / 3;
else
return sys / 2;
}

unsigned long ltq_ar9_cpu_hz(void)
Expand Down

0 comments on commit 1601078

Please sign in to comment.