mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH for next] PCM051: Fixup DDRPLL
@ 2013-08-29 12:54 Teresa Gámez
  2013-08-31 10:00 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Teresa Gámez @ 2013-08-29 12:54 UTC (permalink / raw)
  To: barebox

The correct DDRPLL for PCM051 is 303MHz.

Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
---
 As the board runs also fine with 266MHz. There
 is no need to fix it in master.

 arch/arm/boards/pcm051/lowlevel.c              |    2 +-
 arch/arm/mach-omap/include/mach/am33xx-clock.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/arm/boards/pcm051/lowlevel.c b/arch/arm/boards/pcm051/lowlevel.c
index 078e83b..48578cd 100644
--- a/arch/arm/boards/pcm051/lowlevel.c
+++ b/arch/arm/boards/pcm051/lowlevel.c
@@ -68,7 +68,7 @@ static int pcm051_board_init(void)
 	if (running_in_sdram())
 		return 0;
 
-	pll_init(MPUPLL_M_600, 25, DDRPLL_M_266);
+	pll_init(MPUPLL_M_600, 25, DDRPLL_M_303);
 
 	am335x_sdram_init(0x18B, &MT41J256M8HX15E_2x256M8_cmd,
 			&MT41J256M8HX15E_2x256M8_regs,
diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h
index b3c7519..ecd90b2 100644
--- a/arch/arm/mach-omap/include/mach/am33xx-clock.h
+++ b/arch/arm/mach-omap/include/mach/am33xx-clock.h
@@ -49,6 +49,7 @@
 /* DDR Freq is 266 MHZ for now*/
 /* Set Fdll = 400 MHZ , Fdll = M * 2 * CLKINP/ N + 1; clkout = Fdll /(2 * M2) */
 #define DDRPLL_M_266	266
+#define DDRPLL_M_303	303
 #define DDRPLL_M_400	400
 #define DDRPLL_N	(OSC - 1)
 #define DDRPLL_M2	1
-- 
1.7.0.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH for next] PCM051: Fixup DDRPLL
  2013-08-29 12:54 [PATCH for next] PCM051: Fixup DDRPLL Teresa Gámez
@ 2013-08-31 10:00 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-08-31 10:00 UTC (permalink / raw)
  To: Teresa Gámez; +Cc: barebox

On Thu, Aug 29, 2013 at 02:54:15PM +0200, Teresa Gámez wrote:
> The correct DDRPLL for PCM051 is 303MHz.
> 
> Signed-off-by: Teresa Gámez <t.gamez@phytec.de>

Applied, thanks

Sascha

> ---
>  As the board runs also fine with 266MHz. There
>  is no need to fix it in master.
> 
>  arch/arm/boards/pcm051/lowlevel.c              |    2 +-
>  arch/arm/mach-omap/include/mach/am33xx-clock.h |    1 +
>  2 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/boards/pcm051/lowlevel.c b/arch/arm/boards/pcm051/lowlevel.c
> index 078e83b..48578cd 100644
> --- a/arch/arm/boards/pcm051/lowlevel.c
> +++ b/arch/arm/boards/pcm051/lowlevel.c
> @@ -68,7 +68,7 @@ static int pcm051_board_init(void)
>  	if (running_in_sdram())
>  		return 0;
>  
> -	pll_init(MPUPLL_M_600, 25, DDRPLL_M_266);
> +	pll_init(MPUPLL_M_600, 25, DDRPLL_M_303);
>  
>  	am335x_sdram_init(0x18B, &MT41J256M8HX15E_2x256M8_cmd,
>  			&MT41J256M8HX15E_2x256M8_regs,
> diff --git a/arch/arm/mach-omap/include/mach/am33xx-clock.h b/arch/arm/mach-omap/include/mach/am33xx-clock.h
> index b3c7519..ecd90b2 100644
> --- a/arch/arm/mach-omap/include/mach/am33xx-clock.h
> +++ b/arch/arm/mach-omap/include/mach/am33xx-clock.h
> @@ -49,6 +49,7 @@
>  /* DDR Freq is 266 MHZ for now*/
>  /* Set Fdll = 400 MHZ , Fdll = M * 2 * CLKINP/ N + 1; clkout = Fdll /(2 * M2) */
>  #define DDRPLL_M_266	266
> +#define DDRPLL_M_303	303
>  #define DDRPLL_M_400	400
>  #define DDRPLL_N	(OSC - 1)
>  #define DDRPLL_M2	1
> -- 
> 1.7.0.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-08-31 10:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 12:54 [PATCH for next] PCM051: Fixup DDRPLL Teresa Gámez
2013-08-31 10:00 ` Sascha Hauer

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