summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-dw.h
diff options
context:
space:
mode:
authorNandhini Srikandan <nandhini.srikandan@intel.com>2022-07-13 12:22:22 +0800
committerMark Brown <broonie@kernel.org>2022-07-13 13:32:31 +0100
commit51e41dc2f2bc7e7c8d5b8202a23eae3ee6056131 (patch)
tree7b3f34c59d6e27e314577a31a8c13b2a098d9528 /drivers/spi/spi-dw.h
parent0d085723c637fd6929b8926a2963de1c2307cfa1 (diff)
downloadlwn-51e41dc2f2bc7e7c8d5b8202a23eae3ee6056131.tar.gz
lwn-51e41dc2f2bc7e7c8d5b8202a23eae3ee6056131.zip
spi: dw: Add support for master mode selection for DWC SSI controller
Add support to select the controller mode as master mode by setting Bit 31 of CTRLR0 register. This feature is supported for controller versions above v1.02. Signed-off-by: Nandhini Srikandan <nandhini.srikandan@intel.com> Acked-by: Serge Semin <fancer.lancer@gmail.com> Link: https://lore.kernel.org/r/20220713042223.1458-4-nandhini.srikandan@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r--drivers/spi/spi-dw.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h
index 79d853f6d192..8b8f924ac410 100644
--- a/drivers/spi/spi-dw.h
+++ b/drivers/spi/spi-dw.h
@@ -94,13 +94,7 @@
#define DW_HSSI_CTRLR0_SCPOL BIT(9)
#define DW_HSSI_CTRLR0_TMOD_MASK GENMASK(11, 10)
#define DW_HSSI_CTRLR0_SRL BIT(13)
-
-/*
- * For Keem Bay, CTRLR0[31] is used to select controller mode.
- * 0: SSI is slave
- * 1: SSI is master
- */
-#define DW_HSSI_CTRLR0_KEEMBAY_MST BIT(31)
+#define DW_HSSI_CTRLR0_MST BIT(31)
/* Bit fields in CTRLR1 */
#define DW_SPI_NDF_MASK GENMASK(15, 0)