diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-11-22 15:35:53 +0900 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 14:04:44 +0000 |
commit | 83e37b8e400ca51cc97946815b3055daacd92fa8 (patch) | |
tree | 5c8fac6e05dc7e5f5a7ff420bf5a0a9e42f613d7 /arch/arm/plat-samsung/dev-asocdma.c | |
parent | 58bb4072132c54d832082cc6eac396a6db009cbd (diff) | |
download | op-kernel-dev-83e37b8e400ca51cc97946815b3055daacd92fa8.zip op-kernel-dev-83e37b8e400ca51cc97946815b3055daacd92fa8.tar.gz |
ARM: Samsung: Define common audio-dma device
The ASoC uses common DMA driver for Audio devices. So it makes
sense to a common audio-dma device shared across all platforms.
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'arch/arm/plat-samsung/dev-asocdma.c')
-rw-r--r-- | arch/arm/plat-samsung/dev-asocdma.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/dev-asocdma.c b/arch/arm/plat-samsung/dev-asocdma.c new file mode 100644 index 0000000..b7b1fca --- /dev/null +++ b/arch/arm/plat-samsung/dev-asocdma.c @@ -0,0 +1,24 @@ +/* linux/arch/arm/plat-samsung/dev-asocdma.c + * + * Copyright (c) 2010 Samsung Electronics Co. Ltd + * Jaswinder Singh <jassi.brar@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +#include <linux/platform_device.h> +#include <linux/dma-mapping.h> + +static u64 audio_dmamask = DMA_BIT_MASK(32); + +struct platform_device samsung_asoc_dma = { + .name = "samsung-audio", + .id = -1, + .dev = { + .dma_mask = &audio_dmamask, + .coherent_dma_mask = DMA_BIT_MASK(32), + } +}; +EXPORT_SYMBOL(samsung_asoc_dma); |