NFC: nfcmrvl: set PB_BAIL_OUT at setup
authorVincent Cuissard <cuissard@marvell.com>
Fri, 12 Jun 2015 13:35:54 +0000 (15:35 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 12 Jun 2015 22:08:55 +0000 (00:08 +0200)
PB_BAIL_OUT parameter as to be set to one. This is needed because
digital protocol 1.0 is used in combination with ISO15693 protocol.

Signed-off-by: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcmrvl/main.c
drivers/nfc/nfcmrvl/nfcmrvl.h

index 54ed8acc2a71fc1dc8312f837d4db66182f869bd..4a8866d62941202ee94a697f4ec78729772b8758 100644 (file)
@@ -82,6 +82,9 @@ static int nfcmrvl_nci_send(struct nci_dev *ndev, struct sk_buff *skb)
 
 static int nfcmrvl_nci_setup(struct nci_dev *ndev)
 {
+       __u8 val = 1;
+
+       nci_set_config(ndev, NFCMRVL_PB_BAIL_OUT, 1, &val);
        return 0;
 }
 
index 09780d57c9b831d5d4e441ee2f01ae4718230796..e5a7e5464f2e543be22254585c6936fa05d97123 100644 (file)
 #define NFCMRVL_GPIO_PIN_NFC_ACTIVE            0xB
 #define NFCMRVL_NCI_MAX_EVENT_SIZE             260
 
+/*
+** NCI FW Parmaters
+*/
+
+#define NFCMRVL_PB_BAIL_OUT                    0x11
+
 /*
 ** HCI defines
 */
This page took 0.026378 seconds and 5 git commands to generate.