diff options
author | Jeevan Shriram <jshriram@codeaurora.org> | 2014-05-30 12:55:17 -0700 |
---|---|---|
committer | Jeevan Shriram <jshriram@codeaurora.org> | 2014-07-08 14:24:20 -0700 |
commit | b0d523a6a2fe765fade255968ae00af8280bd427 (patch) | |
tree | 2cd629e6485ef8040619e3f45365db2b556ed6d7 | |
parent | 803af70d8f57f8a585269f598ad9dea5043656c8 (diff) |
target: display: Add capability to skip primary panel in lk
In the current implementation, we have support to select a
specific oem panel in bootloader but there is no support for
skipping the panel configuration completely. This change adds
support to skip the panel configuration in bootloader and is
useful when there is no panel configuration available in
bootloader.
Usage: fastboot oem select-display-panel none
Change-Id: I8c4d558717ee3fd5ced418996a6b26b06ae45837
-rwxr-xr-x | dev/gcdb/display/include/display_resource.h | 2 | ||||
-rwxr-xr-x | target/apq8084/target_display.c | 5 | ||||
-rwxr-xr-x | target/msm8226/target_display.c | 5 | ||||
-rwxr-xr-x | target/msm8610/target_display.c | 6 | ||||
-rwxr-xr-x | target/msm8916/target_display.c | 6 | ||||
-rwxr-xr-x | target/msm8974/target_display.c | 5 |
6 files changed, 29 insertions, 0 deletions
diff --git a/dev/gcdb/display/include/display_resource.h b/dev/gcdb/display/include/display_resource.h index a62625ea..5caad1ea 100755 --- a/dev/gcdb/display/include/display_resource.h +++ b/dev/gcdb/display/include/display_resource.h @@ -42,6 +42,8 @@ #define LK_OVERRIDE_PANEL "1:" #define LK_OVERRIDE_PANEL_LEN 2 +#define NO_PANEL_CONFIG "none" + /*---------------------------------------------------------------------------*/ /* Structure definition */ /*---------------------------------------------------------------------------*/ diff --git a/target/apq8084/target_display.c b/target/apq8084/target_display.c index ae3b0713..3aa23792 100755 --- a/target/apq8084/target_display.c +++ b/target/apq8084/target_display.c @@ -394,6 +394,11 @@ void target_display_init(const char *panel_name) panel_name += strspn(panel_name, " "); + if (!strcmp(panel_name, NO_PANEL_CONFIG)) { + dprintf(INFO, "Skip panel configuration\n"); + return; + } + if (!strcmp(panel_name, HDMI_PANEL_NAME)) { dprintf(INFO, "%s: HDMI is primary\n", __func__); return; diff --git a/target/msm8226/target_display.c b/target/msm8226/target_display.c index 5fbfa86b..d21fb943 100755 --- a/target/msm8226/target_display.c +++ b/target/msm8226/target_display.c @@ -398,6 +398,11 @@ void target_display_init(const char *panel_name) uint32_t ret = 0; uint32_t fb_addr = MIPI_FB_ADDR; + if (!strcmp(panel_name, NO_PANEL_CONFIG)) { + dprintf(INFO, "Skip panel configuration\n"); + return; + } + if (board_hardware_subtype() == HW_PLATFORM_SUBTYPE_QVGA) fb_addr = MIPI_FB_ADDR_QVGA; diff --git a/target/msm8610/target_display.c b/target/msm8610/target_display.c index af2ebeb9..cb9f3ce0 100755 --- a/target/msm8610/target_display.c +++ b/target/msm8610/target_display.c @@ -171,6 +171,12 @@ void target_display_init(const char *panel_name) { uint32_t panel_loop = 0; uint32_t ret = 0; + + if (!strcmp(panel_name, NO_PANEL_CONFIG)) { + dprintf(INFO, "Skip panel configuration\n"); + return; + } + do { ret = gcdb_display_init(panel_name, MDP_REV_304, MIPI_FB_ADDR); if (ret) { diff --git a/target/msm8916/target_display.c b/target/msm8916/target_display.c index 43169f7d..84c26b47 100755 --- a/target/msm8916/target_display.c +++ b/target/msm8916/target_display.c @@ -321,6 +321,12 @@ void target_display_init(const char *panel_name) { uint32_t panel_loop = 0; uint32_t ret = 0; + + if (!strcmp(panel_name, NO_PANEL_CONFIG)) { + dprintf(INFO, "Skip panel configuration\n"); + return; + } + do { ret = gcdb_display_init(panel_name, MDP_REV_50, MIPI_FB_ADDR); if (!ret || ret == ERR_NOT_SUPPORTED) { diff --git a/target/msm8974/target_display.c b/target/msm8974/target_display.c index e399e035..7d985a36 100755 --- a/target/msm8974/target_display.c +++ b/target/msm8974/target_display.c @@ -399,6 +399,11 @@ void target_display_init(const char *panel_name) panel_name += strspn(panel_name, " "); + if (!strcmp(panel_name, NO_PANEL_CONFIG)) { + dprintf(INFO, "Skip panel configuration\n"); + return; + } + if (!strcmp(panel_name, HDMI_PANEL_NAME)) { dprintf(INFO, "%s: HDMI is primary\n", __func__); return; |