MLK-10976: mxc: sim: Using timer interrupt to implement precise timing.
authorLuwei Zhou <b45643@freescale.com>
Tue, 26 May 2015 08:49:06 +0000 (16:49 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:27 +0000 (14:47 -0500)
commit4c04939e6e0481e306aaef907223c9e415d2dd20
tree3b448b3277a871e9d92a6357a9f41af5d3e1e37d
parent3f6312979816ca066c24967c95c2d827d2036f9c
MLK-10976: mxc: sim: Using timer interrupt to implement precise timing.

The EMV4.3 has strict requirement about the reset sequence. The old code use the mdelay, udelay to
achievet, which is not precise enough. Replace it with the timer interrupt. The EMV4.3 requires
40000~45000 clock cycles duration when reset is low.

Signed-off-by: Luwei Zhou <b45643@freescale.com>
(cherry picked from a006fe283c8b97f0a711cb0829bfbdaaf4a5f31f)
drivers/mxc/sim/imx_sim.c