aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/tmio.h
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-05-19 14:34:11 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-22 03:51:18 -0400
commit42a4533976d922ff3272fad17dd52fe3682899dd (patch)
tree2c420853dd7e0194542edf9101cbf7e9f7e47904 /include/linux/mfd/tmio.h
parentd62b8a985b74ac741233396b847562dacc45a5c1 (diff)
mmc: prepare tmio_mmc for passing of DMA configuration from the MFD cell
After this patch, if the "dma" pointer in struct tmio_mmc_data is not NULL, it points to a struct, containing two tokens, that have to be passed to the dmaengine driver for channel configuration. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/linux/mfd/tmio.h')
-rw-r--r--include/linux/mfd/tmio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h
index c3f7dff8effc..360fc953d7bb 100644
--- a/include/linux/mfd/tmio.h
+++ b/include/linux/mfd/tmio.h
@@ -55,12 +55,18 @@ int tmio_core_mmc_resume(void __iomem *cnf, int shift, unsigned long base);
55void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state); 55void tmio_core_mmc_pwr(void __iomem *cnf, int shift, int state);
56void tmio_core_mmc_clk_div(void __iomem *cnf, int shift, int state); 56void tmio_core_mmc_clk_div(void __iomem *cnf, int shift, int state);
57 57
58struct tmio_mmc_dma {
59 void *chan_priv_tx;
60 void *chan_priv_rx;
61};
62
58/* 63/*
59 * data for the MMC controller 64 * data for the MMC controller
60 */ 65 */
61struct tmio_mmc_data { 66struct tmio_mmc_data {
62 unsigned int hclk; 67 unsigned int hclk;
63 unsigned long capabilities; 68 unsigned long capabilities;
69 struct tmio_mmc_dma *dma;
64 void (*set_pwr)(struct platform_device *host, int state); 70 void (*set_pwr)(struct platform_device *host, int state);
65 void (*set_clk_div)(struct platform_device *host, int state); 71 void (*set_clk_div)(struct platform_device *host, int state);
66}; 72};