From: John Crispin Date: Wed, 4 Nov 2015 12:14:13 +0000 (+0100) Subject: MIPS: lantiq: Return correct value for fpi clock on ar9 X-Git-Tag: v4.4-rc1~6^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1601078df26605da7a8107bdd3143ef6b9d07e3b;p=platform%2Fkernel%2Flinux-exynos.git 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: Ben Mulvihill Signed-off-by: John Crispin Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/11448/ Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/lantiq/xway/clk.c b/arch/mips/lantiq/xway/clk.c index 80aad30..07f6d5b 100644 --- a/arch/mips/lantiq/xway/clk.c +++ b/arch/mips/lantiq/xway/clk.c @@ -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)