diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-11-28 10:58:29 +0530 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-11-28 12:21:14 +0100 |
commit | 8e96a55f1fe9735dcf780e5c3da1917f2dd02d57 (patch) | |
tree | ae2b76f3ab0e220702a5a434276dc7ed7d01c7b0 | |
parent | df62f4b4daf3876fbfc9fb92ac6fdfe5f87a650a (diff) |
app: aboot: Force display_panel to "none"
If Display Splash Screen is enabled, and if the display_panel string in
the device info partition is empty, then set the string to "none". This
makes LK not enable the splash screen by default. It can be enabled
by setting the display_panel using fastboot command:
"fastboot oem select-display-panel <name>"
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
-rw-r--r-- | app/aboot/aboot.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c index 846ff0ac..f4bc3fba 100644 --- a/app/aboot/aboot.c +++ b/app/aboot/aboot.c @@ -3646,6 +3646,15 @@ void aboot_init(const struct app_descriptor *app) /* Display splash screen if enabled */ #if DISPLAY_SPLASH_SCREEN + /* Disable display by default for now, this can be changed with + * fastboot oem select-display-panel hdmi + * if needed + */ + if (!strlen(device.display_panel)) { + dprintf(INFO, "Setting display_panel to none\n"); + strlcpy(device.display_panel, "none", + sizeof(device.display_panel)); + } #if NO_ALARM_DISPLAY if (!check_alarm_boot()) { #endif |