[OpenWrt-Devel] [PATCH] lantiq: correct value for fpi clock on ar9

John Crispin blogic at openwrt.org
Thu Jan 22 02:34:56 EST 2015



On 21/01/2015 10:35, Ben Mulvihill wrote:
> Hello,
> 
> This is a patch to go in target/linux/lantiq/patches-3.14/

please send a patch that adds the file instead of just sending the file


> 
> It corrects the fpi clock value on lantiq ar9. See this discussion
> for further details:
> 
> https://lists.openwrt.org/pipermail/openwrt-devel/2015-January/030688.html
> 
> 
> --- a/arch/mips/lantiq/xway/clk.c	2015-01-21 10:15:44.000000000 +0100
> +++ b/arch/mips/lantiq/xway/clk.c	2015-01-21 10:17:29.000000000 +0100
> @@ -104,8 +104,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)
> 
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list