diff options
author | Nicolas Ferre <nicolas.ferre@atmel.com> | 2011-11-22 05:55:54 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@linux.intel.com> | 2011-11-28 05:25:36 -0500 |
commit | 02f88be9488a3d831f073c1161b1e5feacb9d3ec (patch) | |
tree | f4d9a53a2185a6e118ad64e2e27901a0ccb6e43a /drivers/dma/at_hdmac_regs.h | |
parent | dcc817346d311bbd9dac6fc9d6bddb552134851c (diff) |
dmaengine: at_hdmac: simplify device selection from platform data or DT
Using a configuration structure simplify the finding of SoC
dependent parameters. Both platform data and device tree ids are
using these structures.
This will separate data from code and remove the need for an enum.
Idea from Grant Likely.
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
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.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/dma/at_hdmac_regs.h b/drivers/dma/at_hdmac_regs.h index d7d67372e4ff..dcaedfc181cf 100644 --- a/drivers/dma/at_hdmac_regs.h +++ b/drivers/dma/at_hdmac_regs.h | |||
@@ -248,12 +248,6 @@ static inline struct at_dma_chan *to_at_dma_chan(struct dma_chan *dchan) | |||
248 | 248 | ||
249 | /*-- Controller ------------------------------------------------------*/ | 249 | /*-- Controller ------------------------------------------------------*/ |
250 | 250 | ||
251 | enum 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 | |||
257 | /** | 251 | /** |
258 | * struct at_dma - internal representation of an Atmel HDMA Controller | 252 | * struct at_dma - internal representation of an Atmel HDMA Controller |
259 | * @chan_common: common dmaengine dma_device object members | 253 | * @chan_common: common dmaengine dma_device object members |
@@ -267,7 +261,6 @@ enum atdma_devtype { | |||
267 | */ | 261 | */ |
268 | struct at_dma { | 262 | struct at_dma { |
269 | struct dma_device dma_common; | 263 | struct dma_device dma_common; |
270 | enum atdma_devtype devtype; | ||
271 | void __iomem *regs; | 264 | void __iomem *regs; |
272 | struct clk *clk; | 265 | struct clk *clk; |
273 | u32 save_imr; | 266 | u32 save_imr; |