aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorChee Hong Ang <chee.hong.ang@intel.com>2020-12-24 18:20:56 +0800
committerLey Foon Tan <ley.foon.tan@intel.com>2021-01-15 17:48:34 +0800
commitacabb2acb0be47f7621d44d5140430f2a5d7077b (patch)
tree727ec903e98b081e3cf5a33e907ca30518e12e6e /arch
parentab1a425524a79eeca61e7b67fdf382c7a499346f (diff)
downloadu-boot-acabb2acb0be47f7621d44d5140430f2a5d7077b.zip
u-boot-acabb2acb0be47f7621d44d5140430f2a5d7077b.tar.gz
u-boot-acabb2acb0be47f7621d44d5140430f2a5d7077b.tar.bz2
arm: socfpga: Add function for checking description from FIT image
Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do nothing for now. Users are allowed to override this 'weak' function in their specific board implementation. Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-socfpga/board.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c
index 340abf9..7993c27 100644
--- a/arch/arm/mach-socfpga/board.c
+++ b/arch/arm/mach-socfpga/board.c
@@ -13,7 +13,7 @@
#include <asm/arch/clock_manager.h>
#include <asm/arch/misc.h>
#include <asm/io.h>
-
+#include <log.h>
#include <usb.h>
#include <usb/dwc2_udc.h>
@@ -87,3 +87,13 @@ int g_dnl_board_usb_cable_connected(void)
return 1;
}
#endif
+
+#ifdef CONFIG_SPL_BUILD
+__weak int board_fit_config_name_match(const char *name)
+{
+ /* Just empty function now - can't decide what to choose */
+ debug("%s: %s\n", __func__, name);
+
+ return 0;
+}
+#endif