aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-08-03 11:26:12 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-17 17:54:15 -0400
commit65defb9b3ba67c1d6f88ac62c24644eb23a7b676 (patch)
tree68b68b0eb966f6691353363deea65de0d1ea06d1 /include/linux/spi
parent646781d3325cdcc648b8eeb3b7cda393bcb78659 (diff)
mmc: spi: Pull out common DMA parts from MXS MMC
These parts will be used by the MXS SPI driver too. Signed-off-by: Marek Vasut <marex@denx.de> Acked-by: Chris Ball <cjb@laptop.org> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/mxs-spi.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/spi/mxs-spi.h b/include/linux/spi/mxs-spi.h
index d07f8dc7fdd9..61ae1306db23 100644
--- a/include/linux/spi/mxs-spi.h
+++ b/include/linux/spi/mxs-spi.h
@@ -24,6 +24,8 @@
24#ifndef __LINUX_SPI_MXS_SPI_H__ 24#ifndef __LINUX_SPI_MXS_SPI_H__
25#define __LINUX_SPI_MXS_SPI_H__ 25#define __LINUX_SPI_MXS_SPI_H__
26 26
27#include <linux/fsl/mxs-dma.h>
28
27#define ssp_is_old(host) ((host)->devid == IMX23_SSP) 29#define ssp_is_old(host) ((host)->devid == IMX23_SSP)
28 30
29/* SSP registers */ 31/* SSP registers */
@@ -134,6 +136,13 @@ struct mxs_ssp {
134 struct clk *clk; 136 struct clk *clk;
135 unsigned int clk_rate; 137 unsigned int clk_rate;
136 enum mxs_ssp_id devid; 138 enum mxs_ssp_id devid;
139
140 int dma_channel;
141 struct dma_chan *dmach;
142 struct mxs_dma_data dma_data;
143 unsigned int dma_dir;
144 enum dma_transfer_direction slave_dirn;
145 u32 ssp_pio_words[SSP_PIO_NUM];
137}; 146};
138 147
139void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate); 148void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate);