From b0d523a6a2fe765fade255968ae00af8280bd427 Mon Sep 17 00:00:00 2001 From: Jeevan Shriram Date: Fri, 30 May 2014 12:55:17 -0700 Subject: 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 --- target/msm8974/target_display.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/msm8974') 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; -- cgit v1.2.3