[RFC PATCH] mxc_timer1 patch on imx25

Baruch Siach baruch at tkos.co.il
Thu Dec 2 06:32:19 EST 2010


Hi Michael,

On Thu, Dec 02, 2010 at 12:00:05PM +0100, Michael Trimarchi wrote:
> sleep 1 was around 2 seconds
> and so on
> 
> Michael
> 

> GPT clock source select can be selected from:
> 
> 000 No clock
> 001 ipg_clk
> 010 ipg_clk_highfreq
> 011 ipp_ind_clkin (external clock from pad)
> 1xx ipg_clk_32k
> 
> The clock is gated by ipg_clk so the reference value must be computed
> using the get_rate_ipg.

See the discussion at 
http://thread.gmane.org/gmane.linux.ports.arm.kernel/72944.

baruch

> Signed-off-by: Michael Trimarchi <trimarchi at gandalf.sssup.it>
> 
> diff --git a/arch/arm/mach-mx25/clock.c b/arch/arm/mach-mx25/clock.c
> index 9e4a557..0af06d4 100644
> --- a/arch/arm/mach-mx25/clock.c
> +++ b/arch/arm/mach-mx25/clock.c
> @@ -131,7 +131,7 @@ static unsigned long get_rate_nfc(struct clk *clk)
>  
>  static unsigned long get_rate_gpt(struct clk *clk)
>  {
> -	return get_rate_per(5);
> +	return get_rate_ipg(NULL);
>  }
>  
>  static unsigned long get_rate_lcdc(struct clk *clk)

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -



More information about the linux-arm-kernel mailing list