aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-sa1100
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-03-25 18:54:52 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-03-25 18:54:57 -0400
commit277dc7ae147e971cfdbf4aa3529477909852b780 (patch)
tree59fe6d5cb428e1a543f24cf0d4d16edebb247c5e /arch/arm/mach-sa1100
parent374da9da22ebaad0524c77905b5e89ae4619bef3 (diff)
parentd138dacb4b8255c02e4380ce2aadab758a99d2c1 (diff)
Merge branch 'sa11x0-ir' into sa11x0
Diffstat (limited to 'arch/arm/mach-sa1100')
-rw-r--r--arch/arm/mach-sa1100/generic.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/generic.c b/arch/arm/mach-sa1100/generic.c
index 2b33b4597468..1752686e9abc 100644
--- a/arch/arm/mach-sa1100/generic.c
+++ b/arch/arm/mach-sa1100/generic.c
@@ -14,6 +14,7 @@
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/delay.h> 16#include <linux/delay.h>
17#include <linux/dma-mapping.h>
17#include <linux/pm.h> 18#include <linux/pm.h>
18#include <linux/cpufreq.h> 19#include <linux/cpufreq.h>
19#include <linux/ioport.h> 20#include <linux/ioport.h>
@@ -289,6 +290,29 @@ static struct platform_device sa11x0rtc_device = {
289 .id = -1, 290 .id = -1,
290}; 291};
291 292
293static struct resource sa11x0dma_resources[] = {
294 DEFINE_RES_MEM(__PREG(DDAR(0)), 6 * DMASp),
295 DEFINE_RES_IRQ(IRQ_DMA0),
296 DEFINE_RES_IRQ(IRQ_DMA1),
297 DEFINE_RES_IRQ(IRQ_DMA2),
298 DEFINE_RES_IRQ(IRQ_DMA3),
299 DEFINE_RES_IRQ(IRQ_DMA4),
300 DEFINE_RES_IRQ(IRQ_DMA5),
301};
302
303static u64 sa11x0dma_dma_mask = DMA_BIT_MASK(32);
304
305static struct platform_device sa11x0dma_device = {
306 .name = "sa11x0-dma",
307 .id = -1,
308 .dev = {
309 .dma_mask = &sa11x0dma_dma_mask,
310 .coherent_dma_mask = 0xffffffff,
311 },
312 .num_resources = ARRAY_SIZE(sa11x0dma_resources),
313 .resource = sa11x0dma_resources,
314};
315
292static struct platform_device *sa11x0_devices[] __initdata = { 316static struct platform_device *sa11x0_devices[] __initdata = {
293 &sa11x0udc_device, 317 &sa11x0udc_device,
294 &sa11x0uart1_device, 318 &sa11x0uart1_device,
@@ -297,6 +321,7 @@ static struct platform_device *sa11x0_devices[] __initdata = {
297 &sa11x0pcmcia_device, 321 &sa11x0pcmcia_device,
298 &sa11x0fb_device, 322 &sa11x0fb_device,
299 &sa11x0rtc_device, 323 &sa11x0rtc_device,
324 &sa11x0dma_device,
300}; 325};
301 326
302static int __init sa1100_init(void) 327static int __init sa1100_init(void)