[PATCH] xilinx: versal: Introduce board_fit_config_name_match() for Versal

Michal Simek michal.simek at xilinx.com
Mon Oct 26 12:34:13 CET 2020


Introduce board_fit_config_name_match() to be able to handle images with
multiple DTBs. For now match it with DEVICE_TREE as is done for Zynq.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/versal/board.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/board/xilinx/versal/board.c b/board/xilinx/versal/board.c
index 912c1143a8ad..4c92769dc19c 100644
--- a/board/xilinx/versal/board.c
+++ b/board/xilinx/versal/board.c
@@ -244,3 +244,13 @@ int dram_init(void)
 void reset_cpu(ulong addr)
 {
 }
+
+int __maybe_unused board_fit_config_name_match(const char *name)
+{
+	debug("%s: Check %s, default %s\n", __func__, name, DEVICE_TREE);
+
+	if (!strcmp(name, DEVICE_TREE))
+		return 0;
+
+	return -1;
+}
-- 
2.28.0



More information about the U-Boot mailing list