diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-07-23 09:55:59 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2021-08-26 08:14:43 +0200 |
commit | 57f710320fcd18bb5deaa9654dbce4da4de9d987 (patch) | |
tree | 3ef5ee11d7e846076656c3b392d4cac1a8bb882e /board/xilinx | |
parent | 530560b6f8eb06f89ee6d940701a24747bf12d2b (diff) | |
download | u-boot-57f710320fcd18bb5deaa9654dbce4da4de9d987.zip u-boot-57f710320fcd18bb5deaa9654dbce4da4de9d987.tar.gz u-boot-57f710320fcd18bb5deaa9654dbce4da4de9d987.tar.bz2 |
xilinx: Use variable for passing board_name
Use variable which points to DEVICE_TREE by default. The reason for this
change is to enable DTB_RESELECT and MULTI_DTB_FIT where board detection
can be used for change DTB at run time. That's why there must be reference
in board_fit_config_name_match() via variable instead of hardcoding it
which is sufficient for that use case.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx')
-rw-r--r-- | board/xilinx/common/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/board/xilinx/common/board.c b/board/xilinx/common/board.c index 1458b31..db9705c 100644 --- a/board/xilinx/common/board.c +++ b/board/xilinx/common/board.c @@ -436,11 +436,13 @@ int board_late_init_xilinx(void) } #endif +static char *board_name = DEVICE_TREE; + int __maybe_unused board_fit_config_name_match(const char *name) { - debug("%s: Check %s, default %s\n", __func__, name, DEVICE_TREE); + debug("%s: Check %s, default %s\n", __func__, name, board_name); - if (!strcmp(name, DEVICE_TREE)) + if (!strcmp(name, board_name)) return 0; return -1; |