summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-10-26 10:27:41 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-27 04:21:14 +0100
commitb5b3e23e4cace008e1a30e8614a484d14dfd07a1 (patch)
tree451bd798e76313fb43dc654530374d4b3c6e3d5c /include
parent58d34aa677ec248539262c54a618d61804a893f1 (diff)
downloadop-kernel-dev-b5b3e23e4cace008e1a30e8614a484d14dfd07a1.zip
op-kernel-dev-b5b3e23e4cace008e1a30e8614a484d14dfd07a1.tar.gz
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 ac91707..a6f9d63 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 b495825..707e3ab 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 */
OpenPOWER on IntegriCloud