]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
NFC: trf7970a: Add support for Type 4A Tags
authorMark A. Greer <mgreer@animalcreek.com>
Mon, 10 Mar 2014 18:56:23 +0000 (11:56 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 10 Mar 2014 23:47:08 +0000 (00:47 +0100)
Add support for Type 4A Tags which includes
supporting the underlying ISO/IEC 14443-A
protocol.

Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/trf7970a.c

index 0d62d45d6884045df1cf92d30870e1662bd58da4..516d0a616cbee3702d34f7b9d5bf43bbf64c7efb 100644 (file)
@@ -87,7 +87,8 @@
  * the trf7970a_per_cmd_config() routine.
  */
 
-#define TRF7970A_SUPPORTED_PROTOCOLS           NFC_PROTO_MIFARE_MASK
+#define TRF7970A_SUPPORTED_PROTOCOLS \
+               (NFC_PROTO_MIFARE_MASK | NFC_PROTO_ISO14443_MASK)
 
 /* TX data must be prefixed with a FIFO reset cmd, a cmd that depends
  * on what the current framing is, the address of the TX length byte 1
@@ -821,6 +822,7 @@ static int trf7970a_config_framing(struct trf7970a *trf, int framing)
                trf->iso_ctrl |= TRF7970A_ISO_CTRL_RX_CRC_N;
                break;
        case NFC_DIGITAL_FRAMING_NFCA_STANDARD_WITH_CRC_A:
+       case NFC_DIGITAL_FRAMING_NFCA_T4T:
                trf->tx_cmd = TRF7970A_CMD_TRANSMIT;
                trf->iso_ctrl &= ~TRF7970A_ISO_CTRL_RX_CRC_N;
                break;