0038-MIPS-lantiq-fpi-on-ar9.patch 515 B

123456789101112131415161718192021
  1. Return correct value for fpi clock on ar9.
  2. Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
  3. ---
  4. arch/mips/lantiq/xway/clk.c | 5 +++--
  5. 1 file changed, 3 insertions(+), 2 deletions(-)
  6. --- a/arch/mips/lantiq/xway/clk.c
  7. +++ b/arch/mips/lantiq/xway/clk.c
  8. @@ -87,8 +87,9 @@ unsigned long ltq_ar9_fpi_hz(void)
  9. unsigned long sys = ltq_ar9_sys_hz();
  10. if (ltq_cgu_r32(CGU_SYS) & BIT(0))
  11. - return sys;
  12. - return sys >> 1;
  13. + return sys / 3;
  14. + else
  15. + return sys / 2;
  16. }
  17. unsigned long ltq_ar9_cpu_hz(void)