Jassi Brar | 83e37b8 | 2010-11-22 15:35:53 +0900 | [diff] [blame] | 1 | /* linux/arch/arm/plat-samsung/dev-asocdma.c |
| 2 | * |
| 3 | * Copyright (c) 2010 Samsung Electronics Co. Ltd |
| 4 | * Jaswinder Singh <jassi.brar@samsung.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #include <linux/platform_device.h> |
| 12 | #include <linux/dma-mapping.h> |
Mark Brown | 77c667d | 2010-11-24 15:48:01 +0000 | [diff] [blame] | 13 | #include <plat/devs.h> |
Jassi Brar | 83e37b8 | 2010-11-22 15:35:53 +0900 | [diff] [blame] | 14 | |
| 15 | static u64 audio_dmamask = DMA_BIT_MASK(32); |
| 16 | |
| 17 | struct platform_device samsung_asoc_dma = { |
| 18 | .name = "samsung-audio", |
| 19 | .id = -1, |
| 20 | .dev = { |
| 21 | .dma_mask = &audio_dmamask, |
| 22 | .coherent_dma_mask = DMA_BIT_MASK(32), |
| 23 | } |
| 24 | }; |
| 25 | EXPORT_SYMBOL(samsung_asoc_dma); |
Sangbeom Kim | 2839cc1 | 2011-07-21 14:12:19 +0900 | [diff] [blame] | 26 | |
| 27 | struct platform_device samsung_asoc_idma = { |
| 28 | .name = "samsung-idma", |
| 29 | .id = -1, |
| 30 | .dev = { |
| 31 | .dma_mask = &audio_dmamask, |
| 32 | .coherent_dma_mask = DMA_BIT_MASK(32), |
| 33 | } |
| 34 | }; |
| 35 | EXPORT_SYMBOL(samsung_asoc_idma); |