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

#define V_MPUCLK        <desired clock freq in Hz>

Signed-off-by: Mark Jackson <[email protected]>
---
 arch/arm/include/asm/arch-am33xx/clocks_am33xx.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h 
b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
index d748dd2..acfa355 100644
--- a/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
+++ b/arch/arm/include/asm/arch-am33xx/clocks_am33xx.h
@@ -22,7 +22,11 @@
 #define OSC    (V_OSCK/1000000)
 
 /* MAIN PLL Fdll = 550 MHZ, */
+#ifdef V_MPUCLK
+#define MPUPLL_M       (V_MPUCLK/1000000)
+#else
 #define MPUPLL_M       550
+#endif
 #define MPUPLL_N       (OSC-1)
 #define MPUPLL_M2      1
 
-- 
1.7.9.5

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to