diff options
author | Dara Ramesh <dramesh@nvidia.com> | 2011-01-12 09:45:54 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:42:09 -0800 |
commit | 31df4abe0c82bbf7d5802b337a5626d05362f102 (patch) | |
tree | 662b5a5a0deb76d0f9a3e0931cd5e31f225dde84 /arch/arm/mach-tegra/devices.c | |
parent | 352f0957f2007f3b03f0680efdf86ea8073e7847 (diff) |
[ARM/tegra] HDA Driver support
Adding HDA audio driver support for Tegra3
Original-Change-Id: I81a76a54f6ce5390051d96dbeadf447682f9ff0e
Reviewed-on: http://git-master/r/15405
Tested-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Original-Change-Id: I8525ef7317606b895818e73ec92ca174dddf609e
Rebase-Id: R22fcd501393111d656418f67928f5dfd0b38c870
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index a89d21034f84..aca1984794f1 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -707,25 +707,33 @@ struct platform_device tegra_audio_device = { .resource = audio_resource, .num_resources = ARRAY_SIZE(audio_resource), }; +#endif + +#if defined(CONFIG_SND_HDA_TEGRA) +static u64 tegra_hda_dma_mask = DMA_BIT_MASK(32); -static struct resource hda_resource[] = { +static struct resource tegra_hda_resources[] = { [0] = { + .start = TEGRA_HDA_BASE, + .end = TEGRA_HDA_BASE + TEGRA_HDA_SIZE - 1 , + .flags = IORESOURCE_MEM + }, + [1] = { .start = INT_HDA, .end = INT_HDA, .flags = IORESOURCE_IRQ }, - [1] = { - .start = TEGRA_HDA_BASE, - .end = TEGRA_HDA_BASE + TEGRA_HDA_SIZE - 1, - .flags = IORESOURCE_MEM - } }; struct platform_device tegra_hda_device = { - .name = "hda", - .id = -1, - .resource = hda_resource, - .num_resources = ARRAY_SIZE(hda_resource), + .name = "tegra-hda", + .id = 0, + .dev = { + .coherent_dma_mask = DMA_BIT_MASK(32), + .dma_mask = &tegra_hda_dma_mask, + }, + .resource = tegra_hda_resources, + .num_resources = ARRAY_SIZE(tegra_hda_resources), }; #endif |