summaryrefslogtreecommitdiff
path: root/include/linux/spi/mxs-spi.h
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2012-08-03 19:26:12 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-08-18 01:54:15 +0400
commit65defb9b3ba67c1d6f88ac62c24644eb23a7b676 (patch)
tree68b68b0eb966f6691353363deea65de0d1ea06d1 /include/linux/spi/mxs-spi.h
parent646781d3325cdcc648b8eeb3b7cda393bcb78659 (diff)
downloadlinux-65defb9b3ba67c1d6f88ac62c24644eb23a7b676.tar.xz
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/mxs-spi.h')
-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 @@
#ifndef __LINUX_SPI_MXS_SPI_H__
#define __LINUX_SPI_MXS_SPI_H__
+#include <linux/fsl/mxs-dma.h>
+
#define ssp_is_old(host) ((host)->devid == IMX23_SSP)
/* SSP registers */
@@ -134,6 +136,13 @@ struct mxs_ssp {
struct clk *clk;
unsigned int clk_rate;
enum mxs_ssp_id devid;
+
+ int dma_channel;
+ struct dma_chan *dmach;
+ struct mxs_dma_data dma_data;
+ unsigned int dma_dir;
+ enum dma_transfer_direction slave_dirn;
+ u32 ssp_pio_words[SSP_PIO_NUM];
};
void mxs_ssp_set_clk_rate(struct mxs_ssp *ssp, unsigned int rate);