Skip to content

Commit

Permalink
NFC: nfcmrvl: set PB_BAIL_OUT at setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vincent Cuissard authored and Samuel Ortiz committed Jun 12, 2015
1 parent 34ac496 commit d0dcad8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/nfc/nfcmrvl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 6 additions & 0 deletions drivers/nfc/nfcmrvl/nfcmrvl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down

0 comments on commit d0dcad8

Please sign in to comment.