]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00214607 [MX6]Fix CPUFreq change flow issue
authorAnson Huang <b20788@freescale.com>
Thu, 21 Jun 2012 12:07:35 +0000 (20:07 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:52 +0000 (08:34 +0200)
commit5f07ea237d155f6dac98a58b31b40b6476ef1573
tree71e4c1cc6a72cf860cc74b87df90c47d4900a6ad
parent0db21eac0d130265cf0c1b5a833eb45341050331
ENGR00214607 [MX6]Fix CPUFreq change flow issue

Previous flow when we change PLL1_SW_CLK from 400M
PFD to PLL1_MAIN_CLK is as below:

1. move PLL1_SW_CLK from 400M PFD to PLL1_MAIN_CLK;
2. change PLL1_MAIN_CLK's freq if necessary;

There is chance that the PLL1_MAIN_CLK freq is higher
than what we want, then after step1, system may hang as
we use low voltage to run high freq.

The correct flow should be as below:

1. make sure PLL1_MAIN_CLK is enabled;
2. make sure pLL1_MAIN_CLK freq is what we want;
3. move PLL1_SW_CLK from 400M PFD to PLL1_MAIN_CLK.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-mx6/clock.c
arch/arm/mach-mx6/clock_mx6sl.c
arch/arm/mach-mx6/cpu_op-mx6.c