[ARM] tegra: add gart device to devices.c
Gary King [Tue, 3 Aug 2010 21:53:23 +0000 (14:53 -0700)]
Change-Id: Id748aa37a3c2234a2a618b09dfa963a4b4ac572c
Signed-off-by: Gary King <gking@nvidia.com>

Rebase-Id: Rd2ad4c8260cdf09b81863b310653a6e22048fab7

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

index 53e25ee..175e579 100644 (file)
@@ -880,3 +880,25 @@ struct platform_device tegra_i2s_device2 = {
        .resource       = i2s_resource2,
        .num_resources  = ARRAY_SIZE(i2s_resource2),
 };
+
+static struct resource tegra_gart_resources[] = {
+       [0] = {
+               .name   = "mc",
+               .flags  = IORESOURCE_MEM,
+               .start  = TEGRA_MC_BASE,
+               .end    = TEGRA_MC_BASE + TEGRA_MC_SIZE - 1,
+       },
+       [1] = {
+               .name   = "gart",
+               .flags  = IORESOURCE_MEM,
+               .start  = TEGRA_GART_BASE,
+               .end    = TEGRA_GART_BASE + TEGRA_GART_SIZE - 1,
+       }
+};
+
+struct platform_device tegra_gart_device = {
+       .name           = "tegra_gart",
+       .id             = -1,
+       .num_resources  = ARRAY_SIZE(tegra_gart_resources),
+       .resource       = tegra_gart_resources
+};
index cb033ed..d8c30f9 100644 (file)
@@ -61,5 +61,6 @@ extern struct platform_device tegra_ehci2_device;
 extern struct platform_device tegra_ehci3_device;
 extern struct platform_device tegra_i2s_device1;
 extern struct platform_device tegra_i2s_device2;
+extern struct platform_device tegra_gart_device;
 
 #endif