alistair23-linux/drivers/nfc
Christophe Ricard 8ae01f7967 NFC: st21nfcb: Add support for secure element
The st21nfcb chipset has 3 SWP (Single Wire Protocol) lines and
supports up to 3 secure elements (UICC/eSE and µSD in the future).

Some st21nfcb firmware does not support the nci command
nci_nfcee_mode_set(NCI_NFCEE_DISABLE). For this reason, we assume
2 secures elements are always present (UICC and eSE).
They will be added to the SE list once successfully activated and
they will be available only after running through enable_se
handler or when the poll in listen mode is started.

During initialization, the white_list will be always set assuming
both UICC & eSE are present.

On eSE activation, the ATR bytes are fetched to build the command
exchange timeout.

The se_io hook will allow to transfer data over SWP. 2 kind of
events may appear data is sent over:
- ST21NFCB_EVT_TRANSMIT_DATA when receiving an apdu answer
- ST21NFCB_EVT_WTX_REQUEST when the secure element needs more time
  than expected to process a command. If this timeout expires, we
  send a software reset, and then a hardware one if it still fails.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2015-02-02 21:50:40 +01:00
..
microread NFC: microread: Change event_received gate parameter to pipe 2015-01-28 00:03:35 +01:00
nfcmrvl
pn544 NFC: Add ACPI support for NXP PN544 2015-01-28 01:09:08 +01:00
st21nfca NFC: st21nfca: Adding support for secure element 2015-01-28 00:03:36 +01:00
st21nfcb NFC: st21nfcb: Add support for secure element 2015-02-02 21:50:40 +01:00
Kconfig NFC: st21nfcb: Add driver for STMicroelectronics ST21NFCB NFC chip 2014-07-23 00:49:28 +02:00
Makefile NFC: st21nfcb: Add driver for STMicroelectronics ST21NFCB NFC chip 2014-07-23 00:49:28 +02:00
mei_phy.c
mei_phy.h
nfcsim.c
nfcwilink.c nfc: drop owner assignment from platform_drivers 2014-10-20 16:21:19 +02:00
pn533.c
port100.c
trf7970a.c NFC / PM: Replace CONFIG_PM_RUNTIME with CONFIG_PM 2014-12-15 15:12:21 +01:00