public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/3] imx: mx6ul: skip setting ahb rate
Date: Fri, 25 Mar 2016 13:57:46 +0100	[thread overview]
Message-ID: <56F535CA.9040303@denx.de> (raw)
In-Reply-To: <20160325091558.GB22302@linux-7smt.suse>

On 25/03/2016 10:16, Peng Fan wrote:
> 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@gmail.com>
>> Cc: Stefano Babic <sbabic@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
>>

Appplied (whole series) to u-boot-imx, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

      reply	other threads:[~2016-03-25 12:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-09  8:44 [U-Boot] [PATCH 1/3] imx: mx6ul: skip setting ahb rate Peng Fan
2016-03-09  8:44 ` [U-Boot] [PATCH 2/3] imx: mx6ul configure the PMIC_STBY_REQ pin as open drain Peng Fan
2016-03-09  8:44 ` [U-Boot] [PATCH 3/3] imx: print ARM clock for clocks command Peng Fan
2016-03-25  9:16 ` [U-Boot] [PATCH 1/3] imx: mx6ul: skip setting ahb rate Peng Fan
2016-03-25 12:57   ` Stefano Babic [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56F535CA.9040303@denx.de \
    --to=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox