Skip to contentSkip to conversation

Allow AM335x MPU core clock speed to be specified in the board config file

PATCH New Mark Jackson 3 participants 3 messages Mar 4, 2013 – Mar 26, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 Allow AM335x MPU core clock speed to be specified in the board config file

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 CONFIG_SYS_MPUCLK <desired clock freq in MHz>

---
Changes in v4:
- Now defined as MHz (not Hz)

Changes in v3:
- Changed from V_MPUCLK to CONFIG_SYS_MPUCLK
- Added entry in README

Changes in v2:
- Tweaked after comments from Peter Korsgaard

 README                                           |    4 ++++
 arch/arm/include/asm/arch-am33xx/clocks_am33xx.h |    7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
README +4 -0
index d8cb394..ddf6df2 100644
@@ -3820,6 +3820,10 @@ Low Level (hardware related) configuration options:
 		If defined, the x86 reset vector code is included. This is not
 		needed when U-Boot is running from Coreboot.
 
+- CONFIG_SYS_MPUCLK
+		Defines the MPU clock speed (in MHz).
+
+		NOTE : currently only supported on AM335x platforms.
 
 Freescale QE/FMAN Firmware Support:
 -----------------------------------
arch/arm/include/asm/arch-am33xx/clocks_am33xx.h +5 -2
index d748dd2..2d96007 100644
@@ -21,8 +21,11 @@
 
 #define OSC	(V_OSCK/1000000)
 
-/* MAIN PLL Fdll = 550 MHZ, */
-#define MPUPLL_M	550
+/* MAIN PLL Fdll = 550 MHz, by default */
+#ifndef CONFIG_SYS_MPUCLK
+#define CONFIG_SYS_MPUCLK	550
+#endif
+#define MPUPLL_M	CONFIG_SYS_MPUCLK
 #define MPUPLL_N	(OSC-1)
 #define MPUPLL_M2	1
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/1 Allow AM335x MPU core clock speed to be specified in the board config file

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Mark" == Mark Jackson <[email protected]> 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 CONFIG_SYS_MPUCLK <desired clock freq in MHz>

Mark> Signed-off-by: Mark Jackson <[email protected]>

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH v4 1/1 Allow AM335x MPU core clock speed to be specified in the board config file

In reply to Mark Jackson
Quoted 7 lines · Mark Jackson

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 CONFIG_SYS_MPUCLK <desired clock freq in MHz>

Applied to u-boot-ti/master (and already pulled into u-boot-arm), thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130326/27c561de/attachment.pgp>