NFC: port100: Add support for type 4A tag platform
authorThierry Escande <thierry.escande@linux.intel.com>
Sun, 26 Jan 2014 23:31:33 +0000 (00:31 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Feb 2014 22:49:54 +0000 (23:49 +0100)
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>
drivers/nfc/port100.c

index 24f5e023f2a5ca520bb9d5e806bfec1c1c84d6de..7931037dd5f02b2159625a344f370348dd12bd97 100644 (file)
@@ -27,7 +27,8 @@
 #define PORT100_PROTOCOLS (NFC_PROTO_JEWEL_MASK    | \
                           NFC_PROTO_MIFARE_MASK   | \
                           NFC_PROTO_FELICA_MASK   | \
-                          NFC_PROTO_NFC_DEP_MASK)
+                          NFC_PROTO_NFC_DEP_MASK  | \
+                          NFC_PROTO_ISO14443_MASK)
 
 #define PORT100_CAPABILITIES (NFC_DIGITAL_DRV_CAPS_IN_CRC | \
                              NFC_DIGITAL_DRV_CAPS_TG_CRC)
@@ -298,6 +299,10 @@ in_protocols[][PORT100_IN_MAX_NUM_PROTOCOLS + 1] = {
                { PORT100_IN_PROT_CHECK_CRC, 0 },
                { PORT100_IN_PROT_END,       0 },
        },
+       [NFC_DIGITAL_FRAMING_NFCA_T4T] = {
+               /* nfc_digital_framing_nfca_standard_with_crc_a */
+               { PORT100_IN_PROT_END,       0 },
+       },
        [NFC_DIGITAL_FRAMING_NFCA_NFC_DEP] = {
                /* nfc_digital_framing_nfca_standard */
                { PORT100_IN_PROT_END, 0 },