diff options
author | Manoj Chourasia <mchourasia@nvidia.com> | 2011-12-20 00:20:16 +0530 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-19 10:21:48 -0800 |
commit | 5413822d36042c41d7f148d7757d3e6820f8e6f5 (patch) | |
tree | 392236f27d6946cd27f1c294a6935c186a1b0c5f /arch/arm/mach-tegra/devices.c | |
parent | e4e6e2658d1e34e748c3b7f01cf43531915e5d68 (diff) |
arm: tegra: Add display and nvmap devices
bug 871603
Reviewed-on: http://git-master/r/72257
Change-Id: I78e7e6c2d86ed8336cb32374f1f3e904365d46ec
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reviewed-on: http://git-master/r/75542
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r-- | arch/arm/mach-tegra/devices.c | 42 |
1 files changed, 40 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c index b9a3b035f162..bb10c1089533 100644 --- a/arch/arm/mach-tegra/devices.c +++ b/arch/arm/mach-tegra/devices.c @@ -20,7 +20,6 @@ #include <linux/resource.h> -#include <linux/platform_device.h> #include <linux/dma-mapping.h> #include <linux/fsl_devices.h> #include <linux/serial_8250.h> @@ -34,8 +33,9 @@ #include <mach/dma.h> #include <mach/usb_phy.h> #include <mach/tegra_smmu.h> -#include "gpio-names.h" +#include "gpio-names.h" +#include "devices.h" #if !defined(CONFIG_ARCH_TEGRA_2x_SOC) #define UART_SOURCE_RATE 408000000 @@ -1695,3 +1695,41 @@ struct platform_device tegra_se_device = { }; #endif +static struct resource tegra_disp1_resources[] = { + { + .name = "irq", + .start = INT_DISPLAY_GENERAL, + .end = INT_DISPLAY_GENERAL, + .flags = IORESOURCE_IRQ, + }, + { + .name = "regs", + .start = TEGRA_DISPLAY_BASE, + .end = TEGRA_DISPLAY_BASE + TEGRA_DISPLAY_SIZE-1, + .flags = IORESOURCE_MEM, + }, + { + .name = "fbmem", + .start = 0, + .end = 0, + .flags = IORESOURCE_MEM, + }, + { + .name = "dsi_regs", + .start = TEGRA_DSI_BASE, + .end = TEGRA_DSI_BASE + TEGRA_DSI_SIZE - 1, + .flags = IORESOURCE_MEM, + }, +}; + +struct nvhost_device tegra_disp1_device = { + .name = "tegradc", + .id = 0, + .resource = tegra_disp1_resources, + .num_resources = ARRAY_SIZE(tegra_disp1_resources), +}; + +struct platform_device tegra_nvmap_device = { + .name = "tegra-nvmap", + .id = -1, +}; |