summaryrefslogtreecommitdiffstats
path: root/sys/boot/uboot/lib/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/uboot/lib/module.c')
-rw-r--r--sys/boot/uboot/lib/module.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/boot/uboot/lib/module.c b/sys/boot/uboot/lib/module.c
index f03d644..d9b3dc0 100644
--- a/sys/boot/uboot/lib/module.c
+++ b/sys/boot/uboot/lib/module.c
@@ -29,19 +29,23 @@ __FBSDID("$FreeBSD$");
/*
* U-Boot-specific module functionality.
- *
- * XXX not much for now...
- *
*/
#include <stand.h>
#include <string.h>
#include "bootstrap.h"
+#include "libuboot.h"
int
uboot_autoload(void)
{
+#if defined(LOADER_FDT_SUPPORT)
+ int err;
+
+ if ((err = fdt_setup_fdtp()) != 0)
+ return (err);
+#endif
return(0);
}
OpenPOWER on IntegriCloud