summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/st21nfcb/st21nfcb.h
diff options
context:
space:
mode:
authorChristophe Ricard <christophe.ricard@gmail.com>2015-06-06 13:16:52 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-06-09 00:34:26 +0200
commit41fc2f50a7a2bfef1deaf78107a4d7b5bf4bd7a5 (patch)
tree649cc29c990d7c2ba08ef637a22631e836fa05ad /drivers/nfc/st21nfcb/st21nfcb.h
parent05f0939f76659260763d31890cb962e8d6060038 (diff)
downloadtalos-op-linux-41fc2f50a7a2bfef1deaf78107a4d7b5bf4bd7a5.tar.gz
talos-op-linux-41fc2f50a7a2bfef1deaf78107a4d7b5bf4bd7a5.zip
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 <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/st21nfcb/st21nfcb.h')
-rw-r--r--drivers/nfc/st21nfcb/st21nfcb.h6
1 files changed, 6 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud