summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2016-03-09 16:44:36 +0800
committerStefano Babic <sbabic@denx.de>2016-03-25 13:56:40 +0100
commite4dc3fc0681bd205b1db6336b0ea3849b5c683e9 (patch)
tree8b1455ce5ea60427a831a6a594ef8407b060f31f
parentb777789ebd193587a8e4700dce656523df821370 (diff)
downloadu-boot-imx-e4dc3fc0681bd205b1db6336b0ea3849b5c683e9.zip
u-boot-imx-e4dc3fc0681bd205b1db6336b0ea3849b5c683e9.tar.gz
u-boot-imx-e4dc3fc0681bd205b1db6336b0ea3849b5c683e9.tar.bz2
imx: mx6ul: skip setting ahb rate
To i.MX6UL, default ARM rate and AHB rate is 396M and 198M, no need to set them. Signed-off-by: Peng Fan <van.freenix@gmail.com> Cc: Stefano Babic <sbabic@denx.de>
-rw-r--r--arch/arm/cpu/armv7/mx6/soc.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index bdd41b0..f29901f 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -328,13 +328,18 @@ int arch_cpu_init(void)
*/
init_bandgap();
- /*
- * When low freq boot is enabled, ROM will not set AHB
- * freq, so we need to ensure AHB freq is 132MHz in such
- * scenario.
- */
- if (mxc_get_clock(MXC_ARM_CLK) == 396000000)
- set_ahb_rate(132000000);
+ if (!IS_ENABLED(CONFIG_MX6UL)) {
+ /*
+ * When low freq boot is enabled, ROM will not set AHB
+ * freq, so we need to ensure AHB freq is 132MHz in such
+ * scenario.
+ *
+ * To i.MX6UL, when power up, default ARM core and
+ * AHB rate is 396M and 132M.
+ */
+ if (mxc_get_clock(MXC_ARM_CLK) == 396000000)
+ set_ahb_rate(132000000);
+ }
/* Set perclk to source from OSC 24MHz */
#if defined(CONFIG_MX6SL)