diff options
| author | Mark A. Greer <mgreer@animalcreek.com> | 2014-03-10 14:56:23 -0400 |
|---|---|---|
| committer | Samuel Ortiz <sameo@linux.intel.com> | 2014-03-10 19:47:08 -0400 |
| commit | 8006289108fa9635d16a65d9db16da06d7dce201 (patch) | |
| tree | d887104031c3635112d05cdae1ad251219bebc98 | |
| parent | 165063f1dac43e48ceb907490fff0a8413b9a32d (diff) | |
NFC: trf7970a: Add support for Type 4A Tags
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>
| -rw-r--r-- | drivers/nfc/trf7970a.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index 0d62d45d6884..516d0a616cbe 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c | |||
| @@ -87,7 +87,8 @@ | |||
| 87 | * the trf7970a_per_cmd_config() routine. | 87 | * the trf7970a_per_cmd_config() routine. |
| 88 | */ | 88 | */ |
| 89 | 89 | ||
| 90 | #define TRF7970A_SUPPORTED_PROTOCOLS NFC_PROTO_MIFARE_MASK | 90 | #define TRF7970A_SUPPORTED_PROTOCOLS \ |
| 91 | (NFC_PROTO_MIFARE_MASK | NFC_PROTO_ISO14443_MASK) | ||
| 91 | 92 | ||
| 92 | /* TX data must be prefixed with a FIFO reset cmd, a cmd that depends | 93 | /* TX data must be prefixed with a FIFO reset cmd, a cmd that depends |
| 93 | * on what the current framing is, the address of the TX length byte 1 | 94 | * 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) | |||
| 821 | trf->iso_ctrl |= TRF7970A_ISO_CTRL_RX_CRC_N; | 822 | trf->iso_ctrl |= TRF7970A_ISO_CTRL_RX_CRC_N; |
| 822 | break; | 823 | break; |
| 823 | case NFC_DIGITAL_FRAMING_NFCA_STANDARD_WITH_CRC_A: | 824 | case NFC_DIGITAL_FRAMING_NFCA_STANDARD_WITH_CRC_A: |
| 825 | case NFC_DIGITAL_FRAMING_NFCA_T4T: | ||
| 824 | trf->tx_cmd = TRF7970A_CMD_TRANSMIT; | 826 | trf->tx_cmd = TRF7970A_CMD_TRANSMIT; |
| 825 | trf->iso_ctrl &= ~TRF7970A_ISO_CTRL_RX_CRC_N; | 827 | trf->iso_ctrl &= ~TRF7970A_ISO_CTRL_RX_CRC_N; |
| 826 | break; | 828 | break; |
