From: Gary King Date: Tue, 3 Aug 2010 21:53:23 +0000 (-0700) Subject: [ARM] tegra: add gart device to devices.c X-Git-Tag: firefly_0821_release~9833^2~299 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2f6208f663a114b0feaebae544acc1550651278b;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: add gart device to devices.c Change-Id: Id748aa37a3c2234a2a618b09dfa963a4b4ac572c Signed-off-by: Gary King --- diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index 26028ce3aeeb..36a9a4864c0a 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -470,3 +470,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 +}; diff --git a/arch/arm/mach-tegra/devices.h b/arch/arm/mach-tegra/devices.h index 9ff12576ea72..2e63e0fb3639 100644 --- a/arch/arm/mach-tegra/devices.h +++ b/arch/arm/mach-tegra/devices.h @@ -42,5 +42,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