summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2019-10-20 11:47:21 +0300
committerDongjin Kim <tobetter@gmail.com>2020-02-13 11:13:40 +0300
commit03172f05c55497514fdf38df3d68df568959a4ee (patch)
tree0f4eb1cf316bc560438da4c84a9d87f18ceb1ef2
parent6cc72b5163efc96e714538bcf6a21646f06d28a8 (diff)
downloadu-boot-03172f05c55497514fdf38df3d68df568959a4ee.tar.xz
ODROID-C4: bios: overwrite 'env' when 'overwrite' is 'true'
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I449f66a453faa3d667d96d31e0bfc4de19b5ee76
-rw-r--r--board/hardkernel/odroidc4/odroidc4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/hardkernel/odroidc4/odroidc4.c b/board/hardkernel/odroidc4/odroidc4.c
index 01b593a20e..dbfac9aad4 100644
--- a/board/hardkernel/odroidc4/odroidc4.c
+++ b/board/hardkernel/odroidc4/odroidc4.c
@@ -388,7 +388,6 @@ int board_late_init(void)
if (get_boot_device() == BOOT_DEVICE_SPI) {
setenv("bootdelay", "0");
- setenv("hdmimode", "480p60hz");
setenv("bootcmd", "run boot_spi");
run_command("sf probe", 0);
@@ -396,6 +395,8 @@ int board_late_init(void)
run_command("load mmc 1:1 $loadaddr petitboot.cfg", 0);
run_command("ini u-boot", 0);
run_command("ini petitboot", 0);
+ if (!strcmp("true", getenv("overwrite")))
+ saveenv();
}
}