diff options
author | Thierry Escande <thierry.escande@linux.intel.com> | 2014-01-26 18:31:33 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-02-16 17:49:54 -0500 |
commit | 2a26f9a2c1a28c78dd3b6c9b721b5626600481dd (patch) | |
tree | 578b0d86e2e51465f0aa0c724295d288153622bd | |
parent | c813007f9ffb0b6e9f3dc43bfd9e28806aa57e5d (diff) |
NFC: port100: Add support for type 4A tag platform
This adds support for ISO-DEP protocol over NFC-A rf technology. The
port100 already supports NFC-A and ATS request and response for type 4A
tags are handled at digital level. This patch adds NFC_PROTO_ISO14443
to the supported protocols and an entry for framing configuration which
is the same as NFC-A standard frame with CRC handling.
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/nfc/port100.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 24f5e023f2a5..7931037dd5f0 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c | |||
@@ -27,7 +27,8 @@ | |||
27 | #define PORT100_PROTOCOLS (NFC_PROTO_JEWEL_MASK | \ | 27 | #define PORT100_PROTOCOLS (NFC_PROTO_JEWEL_MASK | \ |
28 | NFC_PROTO_MIFARE_MASK | \ | 28 | NFC_PROTO_MIFARE_MASK | \ |
29 | NFC_PROTO_FELICA_MASK | \ | 29 | NFC_PROTO_FELICA_MASK | \ |
30 | NFC_PROTO_NFC_DEP_MASK) | 30 | NFC_PROTO_NFC_DEP_MASK | \ |
31 | NFC_PROTO_ISO14443_MASK) | ||
31 | 32 | ||
32 | #define PORT100_CAPABILITIES (NFC_DIGITAL_DRV_CAPS_IN_CRC | \ | 33 | #define PORT100_CAPABILITIES (NFC_DIGITAL_DRV_CAPS_IN_CRC | \ |
33 | NFC_DIGITAL_DRV_CAPS_TG_CRC) | 34 | NFC_DIGITAL_DRV_CAPS_TG_CRC) |
@@ -298,6 +299,10 @@ in_protocols[][PORT100_IN_MAX_NUM_PROTOCOLS + 1] = { | |||
298 | { PORT100_IN_PROT_CHECK_CRC, 0 }, | 299 | { PORT100_IN_PROT_CHECK_CRC, 0 }, |
299 | { PORT100_IN_PROT_END, 0 }, | 300 | { PORT100_IN_PROT_END, 0 }, |
300 | }, | 301 | }, |
302 | [NFC_DIGITAL_FRAMING_NFCA_T4T] = { | ||
303 | /* nfc_digital_framing_nfca_standard_with_crc_a */ | ||
304 | { PORT100_IN_PROT_END, 0 }, | ||
305 | }, | ||
301 | [NFC_DIGITAL_FRAMING_NFCA_NFC_DEP] = { | 306 | [NFC_DIGITAL_FRAMING_NFCA_NFC_DEP] = { |
302 | /* nfc_digital_framing_nfca_standard */ | 307 | /* nfc_digital_framing_nfca_standard */ |
303 | { PORT100_IN_PROT_END, 0 }, | 308 | { PORT100_IN_PROT_END, 0 }, |