提交 1601078d 编写于 作者: J John Crispin 提交者: Ralf Baechle

MIPS: lantiq: Return correct value for fpi clock on ar9

Some configurations of AR9 reported the incorrect speed for the fpi bus.
Signed-off-by: NBen Mulvihill <ben.mulvihill@gmail.com>
Signed-off-by: NJohn Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/11448/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 69ebed7d
...@@ -88,8 +88,9 @@ unsigned long ltq_ar9_fpi_hz(void) ...@@ -88,8 +88,9 @@ unsigned long ltq_ar9_fpi_hz(void)
unsigned long sys = ltq_ar9_sys_hz(); unsigned long sys = ltq_ar9_sys_hz();
if (ltq_cgu_r32(CGU_SYS) & BIT(0)) if (ltq_cgu_r32(CGU_SYS) & BIT(0))
return sys; return sys / 3;
return sys >> 1; else
return sys / 2;
} }
unsigned long ltq_ar9_cpu_hz(void) unsigned long ltq_ar9_cpu_hz(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册