From 41fc2f50a7a2bfef1deaf78107a4d7b5bf4bd7a5 Mon Sep 17 00:00:00 2001 From: Christophe Ricard Date: Sat, 6 Jun 2015 13:16:52 +0200 Subject: NFC: st21nfcb: Configure CLF with NCI proprietary command In order to prevent any NFC feature when NFC is disable and to save power, (down to 4uA) put the CLF in hibernate mode with RF deactivated. Add the equivalent to enable the NFC feature when initiating the st21nfcb driver. Signed-off-by: Christophe Ricard Signed-off-by: Samuel Ortiz --- drivers/nfc/st21nfcb/st21nfcb.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/nfc/st21nfcb/st21nfcb.h') diff --git a/drivers/nfc/st21nfcb/st21nfcb.h b/drivers/nfc/st21nfcb/st21nfcb.h index 7c12d9dd03d0..710636325c1f 100644 --- a/drivers/nfc/st21nfcb/st21nfcb.h +++ b/drivers/nfc/st21nfcb/st21nfcb.h @@ -26,6 +26,12 @@ #define ST21NFCB_NCI_RUNNING 1 #define ST21NFCB_NCI_CORE_PROP 0x01 +#define ST21NFCB_NCI_SET_NFC_MODE 0x02 + +struct nci_mode_set_cmd { + u8 cmd_type; + u8 mode; +} __packed; struct nci_mode_set_rsp { u8 status; -- cgit v1.2.1