Skip to content
Snippets Groups Projects
Commit e4dc3fc0 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

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: default avatarPeng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
parent b777789e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment