diff options
author | Albrecht Dreß <albrecht.dress@lios-tech.com> | 2006-03-15 11:03:05 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-15 11:03:05 -0500 |
commit | 66be0c30282bef9ef5ab1f89028834ea00f4b4ae (patch) | |
tree | a61cd268be2ae2c7b7afb7db24efb4ee39b0833d /arch/arm/mach-s3c2410/devs.c | |
parent | 4ebf2d00260bac5213c5dfb8d257e15e40503725 (diff) |
[ARM] 3358/1: [S3C2410] add missing SPI DMA resources
Patch from Albrecht Dreß
Add DMA resources to s3c2410 spi platform devices - dma_(alloc|free)_coherent should now work as expected.
Signed-off-by: Albrecht Dreß <albrecht.dress@lios-tech.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-s3c2410/devs.c')
-rw-r--r-- | arch/arm/mach-s3c2410/devs.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c2410/devs.c b/arch/arm/mach-s3c2410/devs.c index 0a47d38789a5..ca09ba516e4c 100644 --- a/arch/arm/mach-s3c2410/devs.c +++ b/arch/arm/mach-s3c2410/devs.c | |||
@@ -334,11 +334,17 @@ static struct resource s3c_spi0_resource[] = { | |||
334 | 334 | ||
335 | }; | 335 | }; |
336 | 336 | ||
337 | static u64 s3c_device_spi0_dmamask = 0xffffffffUL; | ||
338 | |||
337 | struct platform_device s3c_device_spi0 = { | 339 | struct platform_device s3c_device_spi0 = { |
338 | .name = "s3c2410-spi", | 340 | .name = "s3c2410-spi", |
339 | .id = 0, | 341 | .id = 0, |
340 | .num_resources = ARRAY_SIZE(s3c_spi0_resource), | 342 | .num_resources = ARRAY_SIZE(s3c_spi0_resource), |
341 | .resource = s3c_spi0_resource, | 343 | .resource = s3c_spi0_resource, |
344 | .dev = { | ||
345 | .dma_mask = &s3c_device_spi0_dmamask, | ||
346 | .coherent_dma_mask = 0xffffffffUL | ||
347 | } | ||
342 | }; | 348 | }; |
343 | 349 | ||
344 | EXPORT_SYMBOL(s3c_device_spi0); | 350 | EXPORT_SYMBOL(s3c_device_spi0); |
@@ -359,11 +365,17 @@ static struct resource s3c_spi1_resource[] = { | |||
359 | 365 | ||
360 | }; | 366 | }; |
361 | 367 | ||
368 | static u64 s3c_device_spi1_dmamask = 0xffffffffUL; | ||
369 | |||
362 | struct platform_device s3c_device_spi1 = { | 370 | struct platform_device s3c_device_spi1 = { |
363 | .name = "s3c2410-spi", | 371 | .name = "s3c2410-spi", |
364 | .id = 1, | 372 | .id = 1, |
365 | .num_resources = ARRAY_SIZE(s3c_spi1_resource), | 373 | .num_resources = ARRAY_SIZE(s3c_spi1_resource), |
366 | .resource = s3c_spi1_resource, | 374 | .resource = s3c_spi1_resource, |
375 | .dev = { | ||
376 | .dma_mask = &s3c_device_spi1_dmamask, | ||
377 | .coherent_dma_mask = 0xffffffffUL | ||
378 | } | ||
367 | }; | 379 | }; |
368 | 380 | ||
369 | EXPORT_SYMBOL(s3c_device_spi1); | 381 | EXPORT_SYMBOL(s3c_device_spi1); |