summaryrefslogtreecommitdiff
path: root/board/hardkernel/odroidc2/odroidc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/hardkernel/odroidc2/odroidc2.c')
-rw-r--r--board/hardkernel/odroidc2/odroidc2.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/board/hardkernel/odroidc2/odroidc2.c b/board/hardkernel/odroidc2/odroidc2.c
index c58c6ccda0..f5ad37047a 100644
--- a/board/hardkernel/odroidc2/odroidc2.c
+++ b/board/hardkernel/odroidc2/odroidc2.c
@@ -457,7 +457,17 @@ int board_late_init(void)
board_get_mmc_size();
#ifdef CONFIG_DISPLAY_LOGO
- run_command("showlogo 1080p60hz", 0);
+ /*
+ * The env to define display mode is defined differently
+ * on Ubuntu and Android.
+ * To distinguish os system, an env "androidopt" will be used.
+ */
+ if ((NULL == getenv("m")) && (NULL == getenv("hdmimode")))
+ run_command("showlogo 1080p60hz", 0);
+ else if (NULL == getenv("androidopt"))
+ run_command("showlogo ${m}", 0); /* Ubuntu */
+ else
+ run_command("showlogo ${hdmimode}", 0); /* Android */
#endif
board_identity();