09 Jun, 2017
1 commit
-
Kernel space cannot access user space memory directly.
In fact, the issue always exited. Since 4.4, the kernel
handle the action as page abort.Signed-off-by: Gao Pan
Signed-off-by: Fugang Duan
23 Feb, 2017
9 commits
-
SIM1 IOMUX is changed into reset state in LPSR mode.As a result,
sim can't work again.This patch sets sim1 IOMUX to default state after existing from LPSR mode.
(cherry-picked from commit 8e237775cd413645bfd806e4c648954e1a773a2d)
Signed-off-by: Gao Pan
-
sim_activate() process is contained in the cold reset.
Thus, it is redundant and should be removed.This patch also adds comments to cold reset process.
Signed-off-by: Gao Pan
-
The API devm_request_and_ioremap meets compile error
on branch imx_4.1.y. It is recommend to replace the api
with devm_ioremap_resource.Signed-off-by: Gao Pan
-
Add the option to enable SIM driver build.
Signed-off-by: Luwei Zhou
Signed-off-by: Gao Pan
(cherry picked from 0f7a6fa3c141bfc7333d9056639b7a5b1154ed1d) -
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
(cherry picked from a006fe283c8b97f0a711cb0829bfbdaaf4a5f31f) -
In EMV4.3 after warm/cold reset, there would be a receiving window. The receiving
window would be 42000 clock length.If the receiving window expires without receiving
one byte, IFD need to take actions as EMV4.3 spec. The driver need to support this
to identify the sequence of the receiving window expiring event and the receiving event.
Since theinterrupt latency in linux OS is not certain, we need to tune this setting to
pass the cases. Current tuning parameter can work.Signed-off-by: Luwei Zhou
(cherry picked from faf1d8d881a6ad2c6b88fdf312cef142996937c1) -
The CWT timer is used to detect the the character interval in the data traffic.
When tx, SIM IP can guarantee the interval based our setting. When RX, we need
to enalbe the CWT timer to check whether the interval is in the range. This patch
fix this.Signed-off-by: Luwei Zhou
(cherry picked from 9c92dfd070e7427eb1e0166f368b89b4a7ac1bff) -
Modify the driver to support the SIM on i.MX6UL-EVK platform. The main modification is:
1. Add port index to support different port on platform.
2. Add POS-CARD support. The POS card has external IC to assert when SVEN to low. Add support.
3. Using a function to calculate the strict timing delay.Signed-off-by: Luwei Zhou
(cherry picked from 17d1315b0704e2db63ee6bd7aaefa0c796f53104) -
This driver is based on the current code which runs the the EMV test on the i.MX258 platform.
Since there are still many cases that can't pass on the i.MX258 and i.MX7d platform. The
driver will need to be improved after per-test work. Just check in as a base code. There
would be definitly some timing improvement work to do in the future.Signed-off-by: Luwei Zhou
(cherry picked from 3ac1ad5b2a68ecb052ccacca4ac7459ead04415e)