diff options
author | Dara Ramesh <dramesh@nvidia.com> | 2011-01-12 09:45:54 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:49:22 -0700 |
commit | ff77b31c173918111e98cf7f9d704d94c5deb3c2 (patch) | |
tree | 63c7fd63212e1cc3c793571fba09002b0a33a0e2 /arch/arm/mach-tegra/devices.c | |
parent | 86a5c4c07c3c877907dc07dfb2b16e97228eaa3b (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>
Change-Id: I8525ef7317606b895818e73ec92ca174dddf609e
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 4f86a47f613f..c29755dc0530 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -583,25 +583,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 |