MLK-10591-2 ARM: imx: add necessary delay for gpc power switch
authorAnson Huang <b20788@freescale.com>
Tue, 7 Apr 2015 06:32:09 +0000 (14:32 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:41 +0000 (14:48 -0500)
commita637b9372fc1bd76665f5a8f8a3ba2000423baa7
tree2239defd8abbe5b1f2ec774e764b827e170d960e
parent5159eb84b3b2ee9efdafc11c41f082751fde8034
MLK-10591-2 ARM: imx: add necessary delay for gpc power switch

Per design team's requirement, when GPC switch power req is
assert and self-clear, need to add delay to make sure power
switch is actually up, the delay value can be got from below:

delay = 2us * 66MHz / IPG_RATE,

here we add 2us margin to make it more reliable, currently only
display mix and pu mix are a power switch.

Signed-off-by: Anson Huang <b20788@freescale.com>
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit 39601d70efcf49a91da01be7dff6e8c0d4b061ad)
arch/arm/mach-imx/gpc.c