summaryrefslogtreecommitdiffstats
path: root/bsps/microblaze/microblaze_fpga/include/bsp.h
diff options
context:
space:
mode:
authorAlex White <alex.white@oarcorp.com>2022-10-17 15:42:25 -0500
committerJoel Sherrill <joel@rtems.org>2023-02-06 14:29:24 -0600
commit63b21ad5e03469520cefe39a510ef56fc499cb0c (patch)
tree38f9ecd74972852c36b4f8cdfd9aea4ec1e42198 /bsps/microblaze/microblaze_fpga/include/bsp.h
parentsha512_224: Fix SHA512_224_Final() on little-endian machines. (diff)
downloadrtems-63b21ad5e03469520cefe39a510ef56fc499cb0c.tar.bz2
bsps/microblaze: Add device tree getter
This allows drivers to read configuration data from the device tree if the BSP is built with device tree support.
Diffstat (limited to 'bsps/microblaze/microblaze_fpga/include/bsp.h')
-rw-r--r--bsps/microblaze/microblaze_fpga/include/bsp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bsps/microblaze/microblaze_fpga/include/bsp.h b/bsps/microblaze/microblaze_fpga/include/bsp.h
index 93cf0e4b34..410d4483c6 100644
--- a/bsps/microblaze/microblaze_fpga/include/bsp.h
+++ b/bsps/microblaze/microblaze_fpga/include/bsp.h
@@ -43,12 +43,15 @@ extern "C" {
#include <bspopts.h>
#include <bsp/default-initial-extension.h>
+#include <bsp/microblaze-fdt-support.h>
#include <rtems.h>
+#ifdef BSP_MICROBLAZE_FPGA_USE_FDT
#define BSP_FDT_IS_SUPPORTED
extern const unsigned char system_dtb[];
extern const size_t system_dtb_size;
+#endif /* BSP_MICROBLAZE_FPGA_USE_FDT */
void microblaze_enable_icache(void);
void microblaze_enable_dcache(void);