[ARM] tegra: add graphics host to devices.c
authorGary King <gking@nvidia.com>
Sat, 2 Oct 2010 00:02:12 +0000 (17:02 -0700)
committerRebecca Schultz Zavin <rebecca@android.com>
Fri, 8 Oct 2010 22:59:01 +0000 (15:59 -0700)
Change-Id: I4c694d3c9f8a15975591ba5b61625da410991efd
Signed-off-by: Gary King <gking@nvidia.com>
arch/arm/mach-tegra/devices.c
arch/arm/mach-tegra/devices.h

index f132011e243f12ee45750881e7e151c5410b3066..67937e3b10b6f188dbe081faa83b7cb576aa8bd0 100644 (file)
@@ -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),
+};
index d35b6b91b0e6e58e48fbed513fd46fdb9261e841..b0ee0c2916a6eb285f0c62c81dc80e5e1d9e936b 100644 (file)
@@ -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