diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2011-09-26 19:21:08 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:04 -0800 |
commit | 67fec61dd0438d2e666ee3ecf84ffd6d04a3580e (patch) | |
tree | 4642aee485866f9d633d1c956e0836bb0b40fb07 /arch/arm/mach-tegra/devices.c | |
parent | 844e97f6902ce5970f5231d033d067e124cc7abb (diff) |
ARM: tegra: nvavp: registering new nvavp driver
Also re-arranged tegra_nvavp code so that it is common accross boards
Bug 880623
Change-Id: I7d634a718e07e07e945fb512466b3a0672aea7e2
Reviewed-on: http://git-master/r/54487
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R78e4af97d967003560e80efce79d6b22d6d66c4f
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 6f5da486aeec..b956d018f429 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -27,6 +27,7 @@ #include <linux/i2c-tegra.h> #include <linux/platform_data/tegra_usb.h> #include <linux/tegra_avp.h> +#include <linux/nvhost.h> #include <asm/pmu.h> #include <mach/irqs.h> #include <mach/iomap.h> @@ -1414,6 +1415,22 @@ static struct tegra_avp_platform_data tegra_avp_pdata = { #endif }; +struct resource tegra_nvavp_resources[] = { + [0] = { + .start = INT_SHR_SEM_INBOX_IBF, + .end = INT_SHR_SEM_INBOX_IBF, + .flags = IORESOURCE_IRQ, + .name = "mbox_from_nvavp_pending", + }, +}; + +struct nvhost_device nvavp_device = { + .name = "nvavp", + .id = -1, + .resource = tegra_nvavp_resources, + .num_resources = ARRAY_SIZE(tegra_nvavp_resources), +}; + static struct resource tegra_avp_resources[] = { [0] = { .start = INT_SHR_SEM_INBOX_IBF, |