[rtems commit] bsps/shared/: Use device tree blob
Joel Sherrill
joel at rtems.org
Tue Sep 20 16:52:13 UTC 2022
Module: rtems
Branch: master
Commit: d0b92735b0dfd509e1edb82c7145042b67714f43
Changeset: http://git.rtems.org/rtems/commit/?id=d0b92735b0dfd509e1edb82c7145042b67714f43
Author: Padmarao Begari <padmarao.begari at microchip.com>
Date: Mon Sep 19 18:48:27 2022 +0530
bsps/shared/: Use device tree blob
If the bsp is integrated and supported a device tree
blob(dtb) then use dtb instead of using it from
the U-Boot (BSP_START_COPY_FDT_FROM_U_BOOT=False).
---
bsps/shared/start/bsp-fdt.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/bsps/shared/start/bsp-fdt.c b/bsps/shared/start/bsp-fdt.c
index 75a1ea41c9..f532247b2a 100644
--- a/bsps/shared/start/bsp-fdt.c
+++ b/bsps/shared/start/bsp-fdt.c
@@ -32,6 +32,10 @@
#include <bsp/fdt.h>
#include <bsp/linker-symbols.h>
+#ifdef BSP_DTB_IS_SUPPORTED
+#include BSP_DTB_HEADER_PATH
+#endif
+
#ifndef BSP_FDT_IS_SUPPORTED
#warning "BSP FDT support indication not defined"
#endif
@@ -76,5 +80,9 @@ void bsp_fdt_copy(const void *src)
const void *bsp_fdt_get(void)
{
+#ifdef BSP_DTB_IS_SUPPORTED
+ return system_dtb;
+#else
return &bsp_fdt_blob[0];
+#endif
}
More information about the vc
mailing list