summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris <codewalker@hardkernel.com>2021-06-22 03:06:31 +0300
committerChris <codewalker@hardkernel.com>2021-06-23 04:48:14 +0300
commitb4bacc3db66740534151a85d1bd9103905564e4e (patch)
tree93c4165dd64eefca8210ad9f80dc2aad414e5100
parent430749ab5e16218e0bb450cb71c523bc6e875295 (diff)
downloadu-boot-b4bacc3db66740534151a85d1bd9103905564e4e.tar.xz
ODROID-G12: Add 4k variable for 4k resoultion.
C4 and N2 with 2GByte variant do not support 4k in recovery. so it must change to 1080p when 4k monitor detected. Change-Id: Ib3d73c2fdc3628059f49cfca76159607d5eea4a1
-rw-r--r--common/cmd_hdmitx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/cmd_hdmitx.c b/common/cmd_hdmitx.c
index e1d6014060..ad1422aab7 100644
--- a/common/cmd_hdmitx.c
+++ b/common/cmd_hdmitx.c
@@ -123,6 +123,10 @@ READ_EDID:
/* select best resolution */
setenv("hdmimode", select_best_resolution());
+ if (strncmp((const char *)select_best_resolution(), "2160p", 5) == 0)
+ setenv("4k", "yes");
+ else
+ setenv("4k", "no");
setenv("vout", getenv("hdmimode"));
}