video: tegra: support display board PM313
Hyungwoo Yang [Mon, 24 Oct 2011 22:06:17 +0000 (15:06 -0700)]
This change supports PM313 with 19X12 panel.
The change uses PM313 in "Single input to Dual output" mode

Bug ID : 822980
Reviewed-on: http://git-master/r/50215
(cherry picked from commit b83e795747fa860b5b7fb66b2067ebe4f15bcfd0)

Change-Id: Iabf707ded2976e9877481c215d0b1f1940781f14
Reviewed-on: http://git-master/r/60085
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

Rebase-Id: Rfd752366b937526a13b755a13edaa5986c681665

arch/arm/mach-tegra/board.h
arch/arm/mach-tegra/common.c

index 45d7041..8d75d41 100644 (file)
@@ -116,6 +116,7 @@ enum audio_codec_type {
 
 void tegra_get_board_info(struct board_info *);
 void tegra_get_pmu_board_info(struct board_info *bi);
+void tegra_get_display_board_info(struct board_info *bi);
 
 int get_core_edp(void);
 enum panel_type get_panel_type(void);
index fb100b1..80c4696 100644 (file)
@@ -89,6 +89,7 @@ bool tegra_lp0_vec_relocate;
 unsigned long tegra_grhost_aperture = ~0ul;
 static   bool is_tegra_debug_uart_hsport;
 static struct board_info pmu_board_info;
+static struct board_info display_board_info;
 
 static int pmu_core_edp = 1200;        /* default 1.2V EDP limit */
 static int board_panel_type;
@@ -452,6 +453,24 @@ void tegra_get_pmu_board_info(struct board_info *bi)
 
 __setup("pmuboard=", tegra_pmu_board_info);
 
+static int __init tegra_display_board_info(char *info)
+{
+       char *p = info;
+       display_board_info.board_id = memparse(p, &p);
+       display_board_info.sku = memparse(p+1, &p);
+       display_board_info.fab = memparse(p+1, &p);
+       display_board_info.major_revision = memparse(p+1, &p);
+       display_board_info.minor_revision = memparse(p+1, &p);
+       return 1;
+}
+
+void tegra_get_display_board_info(struct board_info *bi)
+{
+       memcpy(bi, &display_board_info, sizeof(struct board_info));
+}
+
+__setup("displayboard=", tegra_display_board_info);
+
 static int __init tegra_modem_id(char *id)
 {
        char *p = id;