From: Dima Zavin Date: Mon, 1 Nov 2010 21:31:05 +0000 (-0700) Subject: ARM: tegra: add avp platform_device X-Git-Tag: firefly_0821_release~9833^2~120^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a70a92ebdfbe6ff36ef413173d8e2800feec0003;p=firefly-linux-kernel-4.4.55.git ARM: tegra: add avp platform_device Change-Id: I8229873e1a450b75d31e6ea4ec64647b88d16844 Signed-off-by: Dima Zavin --- diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 67937e3b10b6..d976fc49ec52 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -787,3 +787,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, + }, +}; diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h index 15ee9ef6c813..d309313bf7dc 100644 --- a/arch/arm/mach-tegra/devices.h +++ b/arch/arm/mach-tegra/devices.h @@ -58,5 +58,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