mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
68957303f4
Add driver for STMicroelectronics ST21NFCA NFC controller. ST21NFCA is using HCI protocol, shdlc as LLC layer & I2C as communication protocol. Adding support for Reader/Writer mode with Tag type 1/2/3/4 A & B. It is using proprietary gate 15 for ISO14443-3 such as type 1 & type 2 tags. It is using proprietary gate 14 for type F tags. ST21NFCA_DEVICE_MGNT_GATE gives access to proprietary CLF configuration. Standard gate for ISO14443-4 A (13) & B (11) are also used. ST21NFCA specific mecanism: One particular point to notice for the data handling is that frame does not contain any length value. Therefore the i2c part of this driver is managing the reception with a read length sequence until the end of frame (0x7e) is reached. In order to avoid conflict between sof & eof a mecanism called byte stuffing concist of an escape byte (0x7d) insertion before special byte (0x7e, 0x7d). The special byte is then xored with 0x20. In this driver, When data are available in the CLF, the interrupt gpio is driven to active state and triggered an interrupt. Once the i2c_master_recv start, the interrupt gpio is driven to idle state until its complete. If the frame is incomplete or data are still available, interrupts will be triggered again. Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
#
|
|
# Near Field Communication (NFC) devices
|
|
#
|
|
|
|
menu "Near Field Communication (NFC) devices"
|
|
depends on NFC
|
|
|
|
config NFC_PN533
|
|
tristate "NXP PN533 USB driver"
|
|
depends on USB
|
|
help
|
|
NXP PN533 USB driver.
|
|
This driver provides support for NFC NXP PN533 devices.
|
|
|
|
Say Y here to compile support for PN533 devices into the
|
|
kernel or say M to compile it as module (pn533).
|
|
|
|
config NFC_WILINK
|
|
tristate "Texas Instruments NFC WiLink driver"
|
|
depends on TI_ST && NFC_NCI
|
|
help
|
|
This enables the NFC driver for Texas Instrument's BT/FM/GPS/NFC
|
|
combo devices. This makes use of shared transport line discipline
|
|
core driver to communicate with the NFC core of the combo chip.
|
|
|
|
Say Y here to compile support for Texas Instrument's NFC WiLink driver
|
|
into the kernel or say M to compile it as module.
|
|
|
|
config NFC_TRF7970A
|
|
tristate "Texas Instruments TRF7970a NFC driver"
|
|
depends on SPI && NFC_DIGITAL
|
|
help
|
|
This option enables the NFC driver for Texas Instruments' TRF7970a
|
|
device. Such device supports 5 different protocols: ISO14443A,
|
|
ISO14443B, FeLiCa, ISO15693 and ISO18000-3.
|
|
|
|
Say Y here to compile support for TRF7970a into the kernel or
|
|
say M to compile it as a module. The module will be called
|
|
trf7970a.ko.
|
|
|
|
config NFC_MEI_PHY
|
|
tristate "MEI bus NFC device support"
|
|
depends on INTEL_MEI && NFC_HCI
|
|
help
|
|
This adds support to use an mei bus nfc device. Select this if you
|
|
will use an HCI NFC driver for an NFC chip connected behind an
|
|
Intel's Management Engine chip.
|
|
|
|
If unsure, say N.
|
|
|
|
config NFC_SIM
|
|
tristate "NFC hardware simulator driver"
|
|
help
|
|
This driver declares two virtual NFC devices supporting NFC-DEP
|
|
protocol. An LLCP connection can be established between them and
|
|
all packets sent from one device is sent back to the other, acting as
|
|
loopback devices.
|
|
|
|
If unsure, say N.
|
|
|
|
config NFC_PORT100
|
|
tristate "Sony NFC Port-100 Series USB device support"
|
|
depends on USB
|
|
depends on NFC_DIGITAL
|
|
help
|
|
This adds support for Sony Port-100 chip based USB devices such as the
|
|
RC-S380 dongle.
|
|
|
|
If unsure, say N.
|
|
|
|
source "drivers/nfc/pn544/Kconfig"
|
|
source "drivers/nfc/microread/Kconfig"
|
|
source "drivers/nfc/nfcmrvl/Kconfig"
|
|
source "drivers/nfc/st21nfca/Kconfig"
|
|
|
|
endmenu
|