summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn544/pn544.h
diff options
context:
space:
mode:
authorArron Wang <arron.wang@intel.com>2013-12-11 10:25:23 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2014-02-16 23:49:54 +0100
commit971d63cff6d70ab09237b7718f39615e40ad0828 (patch)
tree4eafcf813750d21535e93770863991e373db21f9 /drivers/nfc/pn544/pn544.h
parentNFC: Add netlink support for ISO/IEC 15693 (diff)
downloadlinux-971d63cff6d70ab09237b7718f39615e40ad0828.tar.xz
linux-971d63cff6d70ab09237b7718f39615e40ad0828.zip
NFC: pn544: Pass hardware variant information when downloading firmware
Different pn544 hardware variant may use different commands to download new firmwares. The C2 does a regular firmware download while the C3 uses a more secure protocol. As a consequence we need to pass the hardware variant from the HCI SW version command reply down to the pn544 i2c layer, in order to use the right protocol at run time. Signed-off-by: Arron Wang <arron.wang@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/pn544/pn544.h')
-rw-r--r--drivers/nfc/pn544/pn544.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/nfc/pn544/pn544.h b/drivers/nfc/pn544/pn544.h
index 491bf45da358..2aa9233e8086 100644
--- a/drivers/nfc/pn544/pn544.h
+++ b/drivers/nfc/pn544/pn544.h
@@ -25,7 +25,8 @@
#define PN544_HCI_MODE 0
#define PN544_FW_MODE 1
-typedef int (*fw_download_t)(void *context, const char *firmware_name);
+typedef int (*fw_download_t)(void *context, const char *firmware_name,
+ u8 hw_variant);
int pn544_hci_probe(void *phy_id, struct nfc_phy_ops *phy_ops, char *llc_name,
int phy_headroom, int phy_tailroom, int phy_payload,