All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] ARM: at91: clock: fix PLLA overclocked warning
@ 2012-07-09  9:16 Jiri Prchal
  2012-07-09 14:52 ` Nicolas Ferre
  0 siblings, 1 reply; 2+ messages in thread
From: Jiri Prchal @ 2012-07-09  9:16 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fix false warning "PLLA overclocked". Maximum frequency for sam9260 is 210MHz as stated in atmel's datasheet. Originally there was plus 4.5%, so I add this 4.5% to new value too.

Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
---
 arch/arm/mach-at91/clock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
index de2ec6b..e004308 100644
--- a/arch/arm/mach-at91/clock.c
+++ b/arch/arm/mach-at91/clock.c
@@ -707,7 +707,7 @@ static int __init at91_pmc_init(unsigned long main_clock)
 		if (plla.rate_hz > 800000000)
 			pll_overclock = true;
 	} else {
-		if (plla.rate_hz > 209000000)
+		if (plla.rate_hz > 219000000)
 			pll_overclock = true;
 	}
 	if (pll_overclock)
-- 
1.7.7

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

* [PATCH 2/2] ARM: at91: clock: fix PLLA overclocked warning
  2012-07-09  9:16 [PATCH 2/2] ARM: at91: clock: fix PLLA overclocked warning Jiri Prchal
@ 2012-07-09 14:52 ` Nicolas Ferre
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Ferre @ 2012-07-09 14:52 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Jiri,

On 07/09/2012 11:16 AM, Jiri Prchal :
> This patch fix false warning "PLLA overclocked". Maximum frequency
> for sam9260 is 210MHz as stated in atmel's datasheet. Originally there was
> plus 4.5%, so I add this 4.5% to new value too.

Well, I do not see this 4.5% in addition. It is true that Maximum
frequency had been indicated as higher but current value is 210MHz if
VDD core is @ 1.8V (for industrial temperature range).

> Signed-off-by: Jiri Prchal <jiri.prchal@aksignal.cz>
> ---
>  arch/arm/mach-at91/clock.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-at91/clock.c b/arch/arm/mach-at91/clock.c
> index de2ec6b..e004308 100644
> --- a/arch/arm/mach-at91/clock.c
> +++ b/arch/arm/mach-at91/clock.c
> @@ -707,7 +707,7 @@ static int __init at91_pmc_init(unsigned long main_clock)
>  		if (plla.rate_hz > 800000000)
>  			pll_overclock = true;
>  	} else {
> -		if (plla.rate_hz > 209000000)
> +		if (plla.rate_hz > 219000000)

Well, I rework this patch using 210 MHz as stated in datasheet. We shall
keep this 209 MHz test because at91rm9200 is still using this value.
Moreover, I add a new category for 240 MHz.

>  			pll_overclock = true;
>  	}
>  	if (pll_overclock)

Thanks, best regards,
-- 
Nicolas Ferre

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

end of thread, other threads:[~2012-07-09 14:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-09  9:16 [PATCH 2/2] ARM: at91: clock: fix PLLA overclocked warning Jiri Prchal
2012-07-09 14:52 ` Nicolas Ferre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.