summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoy <joy.cho@hardkernel.com>2017-12-18 15:46:44 +0900
committerJeongHwaCho <joycho78@gmail.com>2017-12-19 12:35:40 +0900
commitf1df1a98f85ac22d465ed05acbe4900892fbc758 (patch)
tree22c86a22015c43e483be1b24c9c5a6e6b51ceb93
parent3a2661a09f23775763279d7769cbf7d948743188 (diff)
downloadu-boot-odroid-c1-f1df1a98f85ac22d465ed05acbe4900892fbc758.tar.gz
ODROID-C2: adjust logo display init to support all of resolutions
Change-Id: I58fe3426efd01a1cacf585516b9fe050fffa6e75
-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();