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

26 Oct
2020
26 Oct
'20
12:34 p.m.
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@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
1653
Age (days ago)
1653
Last active (days ago)
0 comments
1 participants
participants (1)
-
Michal Simek