aboutsummaryrefslogtreecommitdiff
path: root/stand/efi/fdt/efi_fdt.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-04-11 13:26:28 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-04-11 13:26:28 +0000
commit2a1e52f347ff179183abb5e2a143f36c8e9feb42 (patch)
tree72210511a7b41c86dea6425d517890b01cf5d0ff /stand/efi/fdt/efi_fdt.c
parentcf973b4420f8b55ae80e0fcd0408d666356d20dd (diff)
downloadsrc-2a1e52f347ff179183abb5e2a143f36c8e9feb42.tar.gz
src-2a1e52f347ff179183abb5e2a143f36c8e9feb42.zip
stand: refactor overlay loading a little bit
It was pointed out that manually loading a .dtb to be used rather than relying on platform-specific method for loading .dtb will result in overlays not being applied. This was true because overlay loading was hacked into fdt_platform_load_dtb, rather than done in a way more independent from how the .dtb is loaded. Instead, push overlay loading (for now) out into an fdt_platform_load_overlays. This method easily allows ubldr to pull in any fdt_overlays specified in the ub env, and omits overlay-checking on platforms where they're not tested and/or not desired (e.g. powerpc). If we eventually stop caring about fdt_overlays from ubenv (if we ever cared), this method should get chopped out in favor of just calling fdt_load_dtb_overlays() directly. Reported by: Manuel Stühn (freebsdnewbie freenet de)
Notes
Notes: svn path=/head/; revision=346132
Diffstat (limited to 'stand/efi/fdt/efi_fdt.c')
-rw-r--r--stand/efi/fdt/efi_fdt.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/stand/efi/fdt/efi_fdt.c b/stand/efi/fdt/efi_fdt.c
index 8703aedc228d..cf3cbabee722 100644
--- a/stand/efi/fdt/efi_fdt.c
+++ b/stand/efi/fdt/efi_fdt.c
@@ -52,11 +52,17 @@ fdt_platform_load_dtb(void)
return (1);
printf("Using DTB provided by EFI at %p.\n", hdr);
- fdt_load_dtb_overlays(NULL);
return (0);
}
void
+fdt_platform_load_overlays(void)
+{
+
+ fdt_load_dtb_overlays(NULL);
+}
+
+void
fdt_platform_fixups(void)
{