Browse Source

NFC: nfcmrvl: set PB_BAIL_OUT at setup

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>
Vincent Cuissard 10 years ago
parent
commit
d0dcad8bd3
2 changed files with 9 additions and 0 deletions
  1. 3 0
      drivers/nfc/nfcmrvl/main.c
  2. 6 0
      drivers/nfc/nfcmrvl/nfcmrvl.h

+ 3 - 0
drivers/nfc/nfcmrvl/main.c

@@ -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;
 }
 

+ 6 - 0
drivers/nfc/nfcmrvl/nfcmrvl.h

@@ -32,6 +32,12 @@
 #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
 */