diff options
Diffstat (limited to 'arch/arm/mach-tegra/board-harmony.c')
-rw-r--r-- | arch/arm/mach-tegra/board-harmony.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/board-harmony.c b/arch/arm/mach-tegra/board-harmony.c index 34a903e93e4c..b0b69e26a7e7 100644 --- a/arch/arm/mach-tegra/board-harmony.c +++ b/arch/arm/mach-tegra/board-harmony.c @@ -41,7 +41,9 @@ #include <mach/irqs.h> #include <mach/sdhci.h> #include <mach/nand.h> +#include <mach/clk.h> +#include "clock.h" #include "board.h" #include "board-harmony.h" #include "clock.h" @@ -226,7 +228,7 @@ static struct fsl_usb2_platform_data tegra_otg_pdata = { .phy_mode = FSL_USB2_PHY_UTMI, }; -struct platform_device tegra_otg = { +static struct platform_device tegra_otg = { .name = "fsl-tegra-udc", .id = -1, .dev = { @@ -250,6 +252,28 @@ static struct platform_device pda_power_device = { }, }; +static struct resource tegra_gart_resources[] = { + { + .name = "mc", + .flags = IORESOURCE_MEM, + .start = TEGRA_MC_BASE, + .end = TEGRA_MC_BASE + TEGRA_MC_SIZE - 1, + }, + { + .name = "gart", + .flags = IORESOURCE_MEM, + .start = 0x58000000, + .end = 0x58000000 - 1 + 32 * 1024 * 1024, + } +}; + +static struct platform_device tegra_gart_dev = { + .name = "tegra_gart", + .id = -1, + .num_resources = ARRAY_SIZE(tegra_gart_resources), + .resource = tegra_gart_resources +}; + static struct platform_device *harmony_devices[] __initdata = { &debug_uart, &tegra_sdhci_device1, @@ -270,6 +294,7 @@ static struct platform_device *harmony_devices[] __initdata = { &tegra_spi_device2, &tegra_spi_device3, &tegra_spi_device4, + &tegra_gart_dev, }; static void __init tegra_harmony_fixup(struct machine_desc *desc, |