aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn533/pn533.h
diff options
context:
space:
mode:
authorLars Poeschel <poeschel@lemonage.de>2019-10-29 15:47:43 +0100
committerDavid S. Miller <davem@davemloft.net>2019-10-29 21:05:26 -0700
commitc64b875fe1e1f6b30e3a15cb74d623349c571001 (patch)
tree56dc04ddb3ad00f489b744f508cbc396035f3731 /drivers/nfc/pn533/pn533.h
parentnfc: pn533: add UART phy driver (diff)
downloadlinux-dev-c64b875fe1e1f6b30e3a15cb74d623349c571001.tar.xz
linux-dev-c64b875fe1e1f6b30e3a15cb74d623349c571001.zip
nfc: pn533: Add autopoll capability
pn532 devices support an autopoll command, that lets the chip automatically poll for selected nfc technologies instead of manually looping through every single nfc technology the user is interested in. This is faster and less cpu and bus intensive than manually polling. This adds this autopoll capability to the pn533 driver. Cc: Johan Hovold <johan@kernel.org> Cc: David Miller <davem@davemloft.net> Signed-off-by: Lars Poeschel <poeschel@lemonage.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/nfc/pn533/pn533.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/nfc/pn533/pn533.h b/drivers/nfc/pn533/pn533.h
index 47d4a6bf9420..b66f02a53167 100644
--- a/drivers/nfc/pn533/pn533.h
+++ b/drivers/nfc/pn533/pn533.h
@@ -6,10 +6,11 @@
* Copyright (C) 2012-2013 Tieto Poland
*/
-#define PN533_DEVICE_STD 0x1
-#define PN533_DEVICE_PASORI 0x2
-#define PN533_DEVICE_ACR122U 0x3
-#define PN533_DEVICE_PN532 0x4
+#define PN533_DEVICE_STD 0x1
+#define PN533_DEVICE_PASORI 0x2
+#define PN533_DEVICE_ACR122U 0x3
+#define PN533_DEVICE_PN532 0x4
+#define PN533_DEVICE_PN532_AUTOPOLL 0x5
#define PN533_ALL_PROTOCOLS (NFC_PROTO_JEWEL_MASK | NFC_PROTO_MIFARE_MASK |\
NFC_PROTO_FELICA_MASK | NFC_PROTO_ISO14443_MASK |\
@@ -75,6 +76,7 @@
#define PN533_CMD_IN_ATR 0x50
#define PN533_CMD_IN_RELEASE 0x52
#define PN533_CMD_IN_JUMP_FOR_DEP 0x56
+#define PN533_CMD_IN_AUTOPOLL 0x60
#define PN533_CMD_TG_INIT_AS_TARGET 0x8c
#define PN533_CMD_TG_GET_DATA 0x86