[U-Boot] [PATCH v2] Allow AM335x MPU core clock speed to be specified in the board config file

Peter Korsgaard jacmet at sunsite.dk
Sun Mar 3 23:40:46 CET 2013


>>>>> "Mark" == Mark Jackson <mpfj-list at mimc.co.uk> writes:

 Mark> Allow AM335x MPU core clock speed to be specified in the board config file.
 Mark> To use, add the following to the board's config file:-

 Mark> #define V_MPUCLK	<desired clock freq in Hz>

 Mark> Signed-off-by: Mark Jackson <mpfj at newflow.co.uk>
 Mark> ---
 Mark> Changes in v2:
 Mark> - Tweaked after comments from Peter Korsgaard

 Mark>  arch/arm/include/asm/arch-am33xx/clocks_am33xx.h |    7 +++++--
 Mark>  1 file changed, 5 insertions(+), 2 deletions(-)

 Mark> diff --git a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
 Mark> index d748dd2..f1a8aa7 100644
 Mark> --- a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
 Mark> +++ b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
 Mark> @@ -21,8 +21,11 @@
 
 Mark>  #define OSC	(V_OSCK/1000000)
 
 Mark> -/* MAIN PLL Fdll = 550 MHZ, */
 Mark> -#define MPUPLL_M	550
 Mark> +/* MAIN PLL Fdll = 550 MHZ, by default */

It would be good to fix MHZ -> MHz while we're at it. Otherwise it looks
good.

Acked-by: Peter Korsgaard <jacmet at sunsite.dk>


 Mark> +#ifndef V_MPUCLK
 Mark> +#define V_MPUCLK	550000000
 Mark> +#endif
 Mark> +#define MPUPLL_M	(V_MPUCLK/1000000)
 Mark>  #define MPUPLL_N	(OSC-1)
 Mark>  #define MPUPLL_M2	1
 
 Mark> -- 
 Mark> 1.7.9.5

 Mark> _______________________________________________
 Mark> U-Boot mailing list
 Mark> U-Boot at lists.denx.de
 Mark> http://lists.denx.de/mailman/listinfo/u-boot


-- 
Bye, Peter Korsgaard


More information about the U-Boot mailing list