Need to ensure that bus frequency setpoint is changed only if
the system is not already at the requested setpoint.
Changing the bus freq to high setpoint when its already at
high setpoint causes the AHB/IPG dividers to be set incorrectly.
Then when the system enters WAIT mode, the 12:5 ratio of
ARM_CLK:IPG_CLK is no longer maintained.
This causes random crashes.
Fix is to return immediately if the bus is already at the
requested setpoint
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
if (!bus_freq_scaling_initialized || !bus_freq_scaling_is_active)
return 0;
+ if (cpu_is_mx6sl())
+ high_bus_freq = 1;
if (high_bus_freq_mode && high_bus_freq)
return 0;