]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00218789 mx6: clock: keep PLL3 enable and power bit all the time
authormake shi <b15407@freescale.com>
Tue, 14 Aug 2012 07:02:00 +0000 (15:02 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:16 +0000 (08:35 +0200)
commitcfe5c23807856c6104e15f249cac3abba60dbd73
treef062c61f5bc7a02c1747807865f5dac9e77f2abc
parent7d4f3a1ce66f75012585cde4c0f72e3945f462e5
ENGR00218789 mx6: clock: keep PLL3 enable and power bit all the time

In order to support USB remote wake up, we should keep the PLL3 enable
and power bit all the time. We use BM_ANADIG_ANA_MISC2_CONTROL0 to control
the PLL3 power off PLL3's power when PLL3 is not used by other module.

PLL3 power design logic as below:
usb1_pll_480_ctrl_power_int=hw_anadig_usb1_pll_480_ctrl_power && ((disable_480_p
ll_n && ~hw_anadig_ana_misc2_control0 )||pwrctl_otg_wakeup || utmi_otg_suspendm)
There are two basic case:
- If USB is active and USB remote wakeup happen , Pll3 will be turn on.
- If USB is not active and no remote wakeup happen, the PLL3 will be controlled
  by hw_anadig_ana_misc2_control0 bit.

Signed-off-by: make shi <b15407@freescale.com>
arch/arm/mach-mx6/clock.c