diff options
author | Gary King <gking@nvidia.com> | 2010-10-01 17:02:12 -0700 |
---|---|---|
committer | Rebecca Schultz Zavin <rebecca@android.com> | 2010-10-08 15:59:01 -0700 |
commit | 711c1c9e2c95944667eef1a5b1bc5347ed3c6c0f (patch) | |
tree | 94267ee44df41be8288c21c8a9cbe0d20efb46dd /arch | |
parent | 9e43de402c3b1aaf6a1c0924bd669a63b74b8999 (diff) |
[ARM] tegra: add graphics host to devices.c
Change-Id: I4c694d3c9f8a15975591ba5b61625da410991efd
Signed-off-by: Gary King <gking@nvidia.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 50 | ||||
-rw-r--r-- | arch/arm/mach-tegra/devices.h | 2 |
2 files changed, 52 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index f132011e243f..67937e3b10b6 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -737,3 +737,53 @@ struct platform_device tegra_uart4_device = { .coherent_dma_mask = DMA_BIT_MASK(32), }, }; + +static struct resource tegra_grhost_resources[] = { + { + .start = TEGRA_HOST1X_BASE, + .end = TEGRA_HOST1X_BASE + TEGRA_HOST1X_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = TEGRA_DISPLAY_BASE, + .end = TEGRA_DISPLAY_BASE + TEGRA_DISPLAY_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = TEGRA_DISPLAY2_BASE, + .end = TEGRA_DISPLAY2_BASE + TEGRA_DISPLAY2_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = TEGRA_VI_BASE, + .end = TEGRA_VI_BASE + TEGRA_VI_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = TEGRA_ISP_BASE, + .end = TEGRA_ISP_BASE + TEGRA_ISP_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = TEGRA_MPE_BASE, + .end = TEGRA_MPE_BASE + TEGRA_MPE_SIZE - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = INT_SYNCPT_THRESH_BASE, + .end = INT_SYNCPT_THRESH_BASE + INT_SYNCPT_THRESH_NR - 1, + .flags = IORESOURCE_IRQ, + }, + { + .start = INT_HOST1X_MPCORE_GENERAL, + .end = INT_HOST1X_MPCORE_GENERAL, + .flags = IORESOURCE_IRQ, + }, +}; + +struct platform_device tegra_grhost_device = { + .name = "tegra_grhost", + .id = -1, + .resource = tegra_grhost_resources, + .num_resources = ARRAY_SIZE(tegra_grhost_resources), +}; diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h index d35b6b91b0e6..b0ee0c2916a6 100644 --- a/arch/arm/mach-tegra/devices.h +++ b/arch/arm/mach-tegra/devices.h @@ -56,4 +56,6 @@ extern struct platform_device tegra_uart2_device; extern struct platform_device tegra_uart3_device; extern struct platform_device tegra_uart4_device; extern struct platform_device tegra_spdif_device; +extern struct platform_device tegra_grhost_device; + #endif |