summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-10-26 12:27:41 +0300
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-27 06:21:14 +0300
commitb5b3e23e4cace008e1a30e8614a484d14dfd07a1 (patch)
tree451bd798e76313fb43dc654530374d4b3c6e3d5c /include
parent58d34aa677ec248539262c54a618d61804a893f1 (diff)
downloadlinux-b5b3e23e4cace008e1a30e8614a484d14dfd07a1.tar.xz
NFC: nfcmrvl: add i2c driver
This driver adds the support of I2C-based Marvell NFC controller. Signed-off-by: Vincent Cuissard <cuissard@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/platform_data/nfcmrvl.h8
-rw-r--r--include/net/nfc/nci.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/platform_data/nfcmrvl.h b/include/linux/platform_data/nfcmrvl.h
index ac91707dabcb..a6f9d633f5be 100644
--- a/include/linux/platform_data/nfcmrvl.h
+++ b/include/linux/platform_data/nfcmrvl.h
@@ -35,6 +35,14 @@ struct nfcmrvl_platform_data {
unsigned int flow_control;
/* Tell if firmware supports break control for power management */
unsigned int break_control;
+
+
+ /*
+ * I2C specific
+ */
+
+ unsigned int irq;
+ unsigned int irq_polarity;
};
#endif /* _NFCMRVL_PTF_H_ */
diff --git a/include/net/nfc/nci.h b/include/net/nfc/nci.h
index b495825f8f49..707e3ab816c2 100644
--- a/include/net/nfc/nci.h
+++ b/include/net/nfc/nci.h
@@ -35,6 +35,7 @@
#define NCI_MAX_NUM_RF_CONFIGS 10
#define NCI_MAX_NUM_CONN 10
#define NCI_MAX_PARAM_LEN 251
+#define NCI_MAX_PAYLOAD_SIZE 255
#define NCI_MAX_PACKET_SIZE 258
/* NCI Status Codes */