summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/nfcmrvl/nfcmrvl.h
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-06-11 14:00:20 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-06-11 23:41:57 +0200
commite097dc624f784debbde49701a493bf920bc422c7 (patch)
treef6837ca9bd1ba197677fef320ffd61b3565ef195 /drivers/nfc/nfcmrvl/nfcmrvl.h
parentdc14bdef8762a8098b1da881b611d722e24fe787 (diff)
downloadlinux-e097dc624f784debbde49701a493bf920bc422c7.tar.bz2
NFC: nfcmrvl: add UART driver
Add support of Marvell NFC chip controlled over UART Signed-off-by: Vincent Cuissard <cuissard@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/nfcmrvl/nfcmrvl.h')
-rw-r--r--drivers/nfc/nfcmrvl/nfcmrvl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/nfc/nfcmrvl/nfcmrvl.h b/drivers/nfc/nfcmrvl/nfcmrvl.h
index 214412bd6110..09780d57c9b8 100644
--- a/drivers/nfc/nfcmrvl/nfcmrvl.h
+++ b/drivers/nfc/nfcmrvl/nfcmrvl.h
@@ -43,6 +43,11 @@
#define NFCMRVL_HCI_OGF 0x81
#define NFCMRVL_HCI_OCF 0xFE
+enum nfcmrvl_phy {
+ NFCMRVL_PHY_USB = 0,
+ NFCMRVL_PHY_UART = 1,
+};
+
struct nfcmrvl_private {
@@ -61,6 +66,8 @@ struct nfcmrvl_private {
void *drv_data;
/* PHY device */
struct device *dev;
+ /* PHY type */
+ enum nfcmrvl_phy phy;
/* Low level driver ops */
struct nfcmrvl_if_ops *if_ops;
};