aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/at_hdmac_regs.h
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2011-10-17 08:56:40 -0400
committerVinod Koul <vinod.koul@linux.intel.com>2011-11-10 03:43:33 -0500
commit67348450b86cb1b42aa4dd55cf7cde19c2e53461 (patch)
tree85bae4e8095d9cf41f539f401d179dcc9fde35b8 /drivers/dma/at_hdmac_regs.h
parent1ea6b8f48918282bdca0b32a34095504ee65bab5 (diff)
dmaengine: at_hdmac: platform data move to use .id_table
We remove the use of platform data from DMA controller driver. We now use of .id_table to distinguish between compatible types. The two implementations allow to determine the number of channels and the capabilities of the controller. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Diffstat (limited to 'drivers/dma/at_hdmac_regs.h')
-rw-r--r--drivers/dma/at_hdmac_regs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/dma/at_hdmac_regs.h b/drivers/dma/at_hdmac_regs.h
index aa4c9aebab7c..d7d67372e4ff 100644
--- a/drivers/dma/at_hdmac_regs.h
+++ b/drivers/dma/at_hdmac_regs.h
@@ -248,9 +248,16 @@ static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan)
248 248
249/*-- Controller ------------------------------------------------------*/ 249/*-- Controller ------------------------------------------------------*/
250 250
251enum atdma_devtype {
252 ATDMA_DEVTYPE_UNDEFINED = 0,
253 ATDMA_DEVTYPE_SAM9RL, /* compatible with SAM9RL DMA controller */
254 ATDMA_DEVTYPE_SAM9G45, /* compatible with SAM9G45 DMA controller */
255};
256
251/** 257/**
252 * struct at_dma - internal representation of an Atmel HDMA Controller 258 * struct at_dma - internal representation of an Atmel HDMA Controller
253 * @chan_common: common dmaengine dma_device object members 259 * @chan_common: common dmaengine dma_device object members
260 * @atdma_devtype: identifier of DMA controller compatibility
254 * @ch_regs: memory mapped register base 261 * @ch_regs: memory mapped register base
255 * @clk: dma controller clock 262 * @clk: dma controller clock
256 * @save_imr: interrupt mask register that is saved on suspend/resume cycle 263 * @save_imr: interrupt mask register that is saved on suspend/resume cycle
@@ -260,6 +267,7 @@ static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan)
260 */ 267 */
261struct at_dma { 268struct at_dma {
262 struct dma_device dma_common; 269 struct dma_device dma_common;
270 enum atdma_devtype devtype;
263 void __iomem *regs; 271 void __iomem *regs;
264 struct clk *clk; 272 struct clk *clk;
265 u32 save_imr; 273 u32 save_imr;