diff options
author | Bo Shen <voice.shen@atmel.com> | 2012-11-06 00:57:51 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-06 04:13:19 -0500 |
commit | 636036d29a20154b897571e1d5949faac98bfb7c (patch) | |
tree | 4d9516e395ff9952794ad83bfd3e8d8e79930fc0 /include/linux/atmel-ssc.h | |
parent | 90b4d60c6103105a634c495003c2ce931f075f63 (diff) |
ARM: at91: atmel-ssc: add platform device id table
Add platform device id to check whether the SSC controller support
pdc or dam for data transfer
If match "at91rm9200_ssc", which support pdc for data transfer
If match "at91sam9g45_ssc", which support dma for data transfer
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include/linux/atmel-ssc.h')
-rw-r--r-- | include/linux/atmel-ssc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/atmel-ssc.h b/include/linux/atmel-ssc.h index 4eb31752e2b7..1ca0e3292bc9 100644 --- a/include/linux/atmel-ssc.h +++ b/include/linux/atmel-ssc.h | |||
@@ -5,10 +5,15 @@ | |||
5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
6 | #include <linux/io.h> | 6 | #include <linux/io.h> |
7 | 7 | ||
8 | struct atmel_ssc_platform_data { | ||
9 | int use_dma; | ||
10 | }; | ||
11 | |||
8 | struct ssc_device { | 12 | struct ssc_device { |
9 | struct list_head list; | 13 | struct list_head list; |
10 | void __iomem *regs; | 14 | void __iomem *regs; |
11 | struct platform_device *pdev; | 15 | struct platform_device *pdev; |
16 | struct atmel_ssc_platform_data *pdata; | ||
12 | struct clk *clk; | 17 | struct clk *clk; |
13 | int user; | 18 | int user; |
14 | int irq; | 19 | int irq; |