summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2017-12-21 11:16:04 +0300
committerJoy Cho <joy.cho@hardkernel.com>2017-12-21 11:26:53 +0300
commit43f71a53918ca905e8304aa9a124433d6fb117b0 (patch)
tree2831dfd923672a6fbac6f9242ab7af4dafa8f6be
parent31a278801f46762c068e340c72ae498bad3e6314 (diff)
downloadu-boot-43f71a53918ca905e8304aa9a124433d6fb117b0.tar.xz
ODROID-C2: update display detection in case of recovery mode
bootargs should be updated with a new modeline and display-related envs to apply each monitors spec. Change-Id: Id766314a438192109e5927f962c4cb39b70c6d5a
-rw-r--r--board/hardkernel/odroidc2/odroidc2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/hardkernel/odroidc2/odroidc2.c b/board/hardkernel/odroidc2/odroidc2.c
index f5ad37047a..2972f0201d 100644
--- a/board/hardkernel/odroidc2/odroidc2.c
+++ b/board/hardkernel/odroidc2/odroidc2.c
@@ -416,6 +416,14 @@ static void board_run_fastboot(void)
static void board_run_recovery(void)
{
+ /*
+ * In case of recovery mode,
+ * bootargs should be updated with new modeline
+ */
+ run_command("usb pwren", 0);
+ run_command("hdmitx edid", 0);
+ run_command("setenv bootargs ${bootargs} modeline=${modeline}", 0);
+
run_command("movi read dtb 0 ${dtb_mem_addr}", 0);
run_command("movi read recovery 0 ${loadaddr}", 0);
run_command("bootm ${load_addr}", 0);