mirror of
https://github.com/torvalds/linux.git
synced 2024-11-02 10:11:36 +00:00
2839cc1e7e
Exynos4 and S5PC110(S5PV210) has Internal dma(idma) in AUDSS. To support idma, register idma platform device. and Exynos4 and S5PC110 has different IDMA address. TO handle different IDMA address, register idma platform data Signed-off-by: Sangbeom Kim <sbkim73@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
36 lines
900 B
C
36 lines
900 B
C
/* 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>
|
|
#include <plat/devs.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);
|
|
|
|
struct platform_device samsung_asoc_idma = {
|
|
.name = "samsung-idma",
|
|
.id = -1,
|
|
.dev = {
|
|
.dma_mask = &audio_dmamask,
|
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
|
}
|
|
};
|
|
EXPORT_SYMBOL(samsung_asoc_idma);
|