summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2014-10-02 15:31:07 +0200
committerMark Brown <broonie@kernel.org>2014-10-02 18:06:26 +0200
commit15ee3be78b017ee9d697fe59d45cdfbb35d9fdeb (patch)
treee93d0c3c779c72b96496842aedcd3482871cfed4 /drivers/spi/spi-dw.h
parentspi: dw: fix style of code in few places (diff)
downloadlinux-15ee3be78b017ee9d697fe59d45cdfbb35d9fdeb.tar.xz
linux-15ee3be78b017ee9d697fe59d45cdfbb35d9fdeb.zip
spi: dw-mid: change magic numbers to the constants
Instead of using magic numbers in the code we create a bit map definition of the DMACR register and use it. There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/spi/spi-dw.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h
index 089fc4ba3ace..83a103a76481 100644
--- a/drivers/spi/spi-dw.h
+++ b/drivers/spi/spi-dw.h
@@ -74,6 +74,10 @@
#define SPI_INT_RXFI (1 << 4)
#define SPI_INT_MSTI (1 << 5)
+/* Bit fields in DMACR */
+#define SPI_DMA_RDMAE (1 << 0)
+#define SPI_DMA_TDMAE (1 << 1)
+
/* TX RX interrupt level threshold, max can be 256 */
#define SPI_INT_THRESHOLD 32