summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongjin Kim <tobetter@gmail.com>2019-10-20 15:13:59 +0900
committerDongjin Kim <tobetter@gmail.com>2020-02-13 17:13:40 +0900
commit6cc72b5163efc96e714538bcf6a21646f06d28a8 (patch)
tree6e6291a62f60155ae4e597939e9d85a762f11b6a
parent7243ad9333c06607e23b244cc8e539e5a64d9ad1 (diff)
downloadu-boot-odroid-c1-6cc72b5163efc96e714538bcf6a21646f06d28a8.tar.gz
ODROID-C4: bios: load 'petitboot.cfg' in board file
Set the display resoltuion to '480p60hz' by default and load 'petitboot.cfg' before showing logo so that the resolution defined in the petitboot.cfg can be affected. Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I387ad899c4e950ec4db75e795cf7aaed13cea2ed
-rw-r--r--board/hardkernel/odroidc4/odroidc4.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/board/hardkernel/odroidc4/odroidc4.c b/board/hardkernel/odroidc4/odroidc4.c
index 92bc9c5b5b..01b593a20e 100644
--- a/board/hardkernel/odroidc4/odroidc4.c
+++ b/board/hardkernel/odroidc4/odroidc4.c
@@ -33,6 +33,7 @@
#ifdef CONFIG_AML_SPIFC
#include <amlogic/spifc.h>
#endif
+#include <fs.h>
#include <odroid-common.h>
@@ -387,13 +388,19 @@ 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);
+
+ if (file_exists("mmc", "1:1", "petitboot.cfg", FS_TYPE_ANY)) {
+ run_command("load mmc 1:1 $loadaddr petitboot.cfg", 0);
+ run_command("ini u-boot", 0);
+ run_command("ini petitboot", 0);
+ }
}
/* boot logo display - 1080p60hz */
run_command("showlogo", 0);
-
usbhost_early_poweron();
return 0;