ARM: tegra: add avp platform_device
Dima Zavin [Mon, 1 Nov 2010 21:31:05 +0000 (14:31 -0700)]
Change-Id: I8229873e1a450b75d31e6ea4ec64647b88d16844
Signed-off-by: Dima Zavin <dima@android.com>

Rebase-Id: Re1638f671e7bd229f362580cfdb297a111878a6b

arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h

index e8906c9..4653b83 100644 (file)
@@ -1130,3 +1130,22 @@ struct platform_device tegra_grhost_device = {
        .resource = tegra_grhost_resources,
        .num_resources = ARRAY_SIZE(tegra_grhost_resources),
 };
+
+static struct resource tegra_avp_resources[] = {
+       [0] = {
+               .start  = INT_SHR_SEM_INBOX_IBF,
+               .end    = INT_SHR_SEM_INBOX_IBF,
+               .flags  = IORESOURCE_IRQ,
+               .name   = "mbox_from_avp_pending",
+       },
+};
+
+struct platform_device tegra_avp_device = {
+       .name           = "tegra-avp",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(tegra_avp_resources),
+       .resource       = tegra_avp_resources,
+       .dev  = {
+               .coherent_dma_mask      = 0xffffffffULL,
+       },
+};
index 17eb65b..15b0ed9 100644 (file)
@@ -75,5 +75,6 @@ extern struct platform_device tegra_uart4_device;
 extern struct platform_device tegra_spdif_device;
 extern struct platform_device tegra_grhost_device;
 extern struct platform_device tegra_spdif_device;
+extern struct platform_device tegra_avp_device;
 
 #endif