1
0
Fork 0

MLK-22210 mxc: emvsim: enable ICM mode

Once detected a valid TS, the ICM bit is cleared and the data format bit,
IC bit , is set to appropriate value depending on the data format
detected using the initial character.

When TS is 0x3B (direct convention) in cold reset, and then become 0x3F
(inverse convention) in warm reset, it will not in ICM mode.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Joakim Zhang 2019-06-01 14:19:51 +08:00 committed by Dong Aisheng
parent 557037b6bd
commit c79402071a
1 changed files with 1 additions and 0 deletions

View File

@ -411,6 +411,7 @@ static void emvsim_receive_atr_set(struct emvsim_t *emvsim)
__raw_writel(ATR_MAX_CWT, emvsim->ioaddr + EMV_SIM_CWT_VAL);
reg_data = __raw_readl(emvsim->ioaddr + EMV_SIM_CTRL);
reg_data |= ICM;
reg_data |= CWT_EN;
__raw_writel(reg_data, emvsim->ioaddr + EMV_SIM_CTRL);