Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/4] arch: mips: lantiq: return correct value for fpi clock on ar9
@ 2015-11-04 12:14 John Crispin
  2015-11-04 12:14 ` [PATCH 2/4] arch: mips: lantiq: initialize the USB core on boot John Crispin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Crispin @ 2015-11-04 12:14 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: linux-mips

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>
---
 arch/mips/lantiq/xway/clk.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/mips/lantiq/xway/clk.c b/arch/mips/lantiq/xway/clk.c
index 8750dc0..2ebe062 100644
--- a/arch/mips/lantiq/xway/clk.c
+++ b/arch/mips/lantiq/xway/clk.c
@@ -87,8 +87,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)
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-11-04 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-04 12:14 [PATCH 1/4] arch: mips: lantiq: return correct value for fpi clock on ar9 John Crispin
2015-11-04 12:14 ` [PATCH 2/4] arch: mips: lantiq: initialize the USB core on boot John Crispin
2015-11-04 12:14 ` [PATCH 3/4] arch: mips: lantiq: force the crossbar to big endian John Crispin
2015-11-04 12:14 ` [PATCH 4/4] arch: mips: lantiq: disable xbar fpi burst mode John Crispin
2015-11-04 20:06   ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox