summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-10-26 05:27:43 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-26 23:23:34 -0400
commit2bd832459a0827b8dcf13b345380b66f92089d74 (patch)
tree4394c323d19ae4979a91a73aa780c57d90e09f1c /include/net
parentfcd9d046fd8998cc984f2ff80e76f246ebca15b6 (diff)
NFC: NCI: allow spi driver to choose transfer clock
In some cases low level drivers might want to update the SPI transfer clock (e.g. during firmware download). This patch adds this support. Without any modification the driver will use the default SPI clock (from pdata or device tree). Signed-off-by: Vincent Cuissard <cuissard@marvell.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/nfc/nci_core.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/nfc/nci_core.h b/include/net/nfc/nci_core.h
index 77880bdf93a8..5a1572a34c49 100644
--- a/include/net/nfc/nci_core.h
+++ b/include/net/nfc/nci_core.h
@@ -394,6 +394,12 @@ struct nci_spi {
394 394
395 unsigned int xfer_udelay; /* microseconds delay between 395 unsigned int xfer_udelay; /* microseconds delay between
396 transactions */ 396 transactions */
397
398 unsigned int xfer_speed_hz; /*
399 * SPI clock frequency
400 * 0 => default clock
401 */
402
397 u8 acknowledge_mode; 403 u8 acknowledge_mode;
398 404
399 struct completion req_completion; 405 struct completion req_completion;