diff options
author | Iliyan Malchev <malchev@google.com> | 2010-09-28 16:12:48 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2010-10-06 16:29:11 -0700 |
commit | dc6eebfb6f28318b1e742153e185dc0b4a9577da (patch) | |
tree | f7ca5959035376c2a6874607a40569f686da5e25 /arch/arm/mach-tegra/devices.c | |
parent | 49c9a88333e015b3494de923f84db6d9e61077a6 (diff) |
[ARM] tegra: add spdif device and resources
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index ef7a3e4146a4..0c90d2e2c52b 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -479,6 +479,24 @@ static struct resource i2s_resource2[] = { } }; +static struct resource spdif_resource[] = { + [0] = { + .start = INT_SPDIF, + .end = INT_SPDIF, + .flags = IORESOURCE_IRQ + }, + [1] = { + .start = TEGRA_DMA_REQ_SEL_SPD_I, + .end = TEGRA_DMA_REQ_SEL_SPD_I, + .flags = IORESOURCE_DMA + }, + [2] = { + .start = TEGRA_SPDIF_BASE, + .end = TEGRA_SPDIF_BASE + TEGRA_SPDIF_SIZE - 1, + .flags = IORESOURCE_MEM + } +}; + struct platform_device tegra_i2s_device1 = { .name = "i2s", .id = 0, @@ -493,6 +511,13 @@ struct platform_device tegra_i2s_device2 = { .num_resources = ARRAY_SIZE(i2s_resource2), }; +struct platform_device tegra_spdif_device = { + .name = "spdif_out", + .id = -1, + .resource = spdif_resource, + .num_resources = ARRAY_SIZE(spdif_resource), +}; + static struct resource tegra_gart_resources[] = { [0] = { .name = "mc", |