summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/devices.c
diff options
context:
space:
mode:
authorDongfang Shi <dshi@nvidia.com>2012-05-03 16:40:49 -0700
committerSimone Willett <swillett@nvidia.com>2012-07-16 20:13:21 -0700
commit9aed57c5b382154e89bb08ca160a413162e0e17d (patch)
tree4685974c8428b2047a7f706e2b576339f314171f /arch/arm/mach-tegra/devices.c
parent7013f2d625dbf31479b3a67de25503a01ecd02c2 (diff)
ARM: tegra: p1852: Dual-display support for all SKUs
Ported Peter's original change 86413 to main. board-p1852-panel.c: Add support for primary and secondary LVDS displays, and secondary HDMI display. board-p1852-pinmux.c: Add configuration for HDMI and LVDS board-p1852.c: board-p1852.h: Support for determining which p1852 sku is in use hdmi.c:If no edid retrieved, but there's a hardwired mode, enable it (used to support HDMI->LVDS output on p1852 sku 2) devices.c:added secondary display data. Bug 977859 Bug 994011 Change-Id: Ide8fb6bf7dd873b1d50269fb98d7c1687e4d9073 Signed-off-by: Dongfang Shi <dshi@nvidia.com> Reviewed-on: http://git-master/r/100438 Reviewed-by: Simone Willett <swillett@nvidia.com> Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/devices.c')
-rw-r--r--arch/arm/mach-tegra/devices.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/devices.c b/arch/arm/mach-tegra/devices.c
index fb97f94b939f..508320582560 100644
--- a/arch/arm/mach-tegra/devices.c
+++ b/arch/arm/mach-tegra/devices.c
@@ -1698,6 +1698,43 @@ struct nvhost_device tegra_disp1_device = {
.num_resources = ARRAY_SIZE(tegra_disp1_resources),
};
+static struct resource tegra_disp2_resources[] = {
+ {
+ .name = "irq",
+ .start = INT_DISPLAY_B_GENERAL,
+ .end = INT_DISPLAY_B_GENERAL,
+ .flags = IORESOURCE_IRQ,
+ },
+ {
+ .name = "regs",
+ .start = TEGRA_DISPLAY2_BASE,
+ .end = TEGRA_DISPLAY2_BASE + TEGRA_DISPLAY2_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+ {
+ .name = "fbmem",
+ .flags = IORESOURCE_MEM,
+ .start = 0,
+ .end = 0,
+ },
+ {
+ .name = "hdmi_regs",
+ .start = TEGRA_HDMI_BASE,
+ .end = TEGRA_HDMI_BASE + TEGRA_HDMI_SIZE - 1,
+ .flags = IORESOURCE_MEM,
+ },
+};
+
+struct nvhost_device tegra_disp2_device = {
+ .name = "tegradc",
+ .id = 1,
+ .resource = tegra_disp2_resources,
+ .num_resources = ARRAY_SIZE(tegra_disp2_resources),
+ .dev = {
+ .platform_data = 0,
+ },
+};
+
struct platform_device tegra_nvmap_device = {
.name = "tegra-nvmap",
.id = -1,