aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2010-12-09 10:37:36 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:36 +0000
commitcb9ecc7487de9469cf229506d6e3482dcaa36820 (patch)
tree3f284171ec6ce06e0b7b2825aa21c096c82e60e3 /include
parent30c35436894b81172616e72f1a1a6ca5229ee2d9 (diff)
downloadmrst-s0i3-test-cb9ecc7487de9469cf229506d6e3482dcaa36820.tar.gz
mrst-s0i3-test-cb9ecc7487de9469cf229506d6e3482dcaa36820.tar.xz
mrst-s0i3-test-cb9ecc7487de9469cf229506d6e3482dcaa36820.zip
Use dma_slave_config to dynamically set dma channel for each dma
transaction, also use the dma device's device_prep_slave_sg() callback instead of the device_prep_dma_memcpy(). Signed-off-by: Feng Tang <feng.tang@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/spi/dw_spi.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h
index 890266a6365..e3aa5a1ff3f 100644
--- a/include/linux/spi/dw_spi.h
+++ b/include/linux/spi/dw_spi.h
@@ -144,10 +144,12 @@ struct dw_spi {
/* Dma info */
int dma_inited;
struct dma_chan *txchan;
+ struct scatterlist tx_sgl;
struct dma_chan *rxchan;
+ struct scatterlist rx_sgl;
int dma_chan_done;
struct device *dma_dev;
- dma_addr_t dma_addr;
+ dma_addr_t dma_addr; /* phy address of the Data register */
struct dw_spi_dma_ops *dma_ops;
void *dma_priv; /* platform relate info */
struct pci_dev *dmac;