[U-Boot] [PATCH 1/3] imx: mx6ul: skip setting ahb rate

Peng Fan van.freenix at gmail.com
Fri Mar 25 10:16:00 CET 2016


Hi Stefano,

Gentle Ping on the three patches.

Thanks,
Peng.
On Wed, Mar 09, 2016 at 04:44:36PM +0800, Peng Fan wrote:
>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 at gmail.com>
>Cc: Stefano Babic <sbabic at denx.de>
>---
> arch/arm/cpu/armv7/mx6/soc.c | 19 ++++++++++++-------
> 1 file 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)
>-- 
>2.6.2
>


More information about the U-Boot mailing list