MLK-12203-2 ARM: imx: adjust loop number to delay ~20us for i.MX7D low power idle
authorAnson Huang <Anson.Huang@nxp.com>
Sat, 9 Jan 2016 16:38:37 +0000 (00:38 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:45 +0000 (14:49 -0500)
commite1bdf4aa8bbd41be56e3776ac54fe68b364d52c7
tree3371e37dc66020df69a188d3172f10264e883b21
parent6cacdcbfcdd00b76837fe0ebe5fae9359b16915e
MLK-12203-2 ARM: imx: adjust loop number to delay ~20us for i.MX7D low power idle

ARM does NOT execute one instruction every cycle, the bus bandwidth,
cache status etc. would impacts the instruction execution time, so we
can NOT just calculate the delay time by ARM frequency, this patch
adjusts loop number to get a ~20us delay, measured via GPIO pin.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
arch/arm/mach-imx/imx7d_low_power_idle.S