From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 19 Feb 2020 18:11:27 +0100 Subject: [PATCH v2 03/21] arm: socfpga: Add function for checking description from FIT image In-Reply-To: <1582115146-28658-4-git-send-email-chee.hong.ang@intel.com> References: <1582115146-28658-1-git-send-email-chee.hong.ang@intel.com> <1582115146-28658-4-git-send-email-chee.hong.ang@intel.com> Message-ID: <74c9e04e-516b-a460-422b-786035bef965@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/19/20 1:25 PM, chee.hong.ang at intel.com wrote: > From: Chee Hong Ang > > 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. > > Signed-off-by: Chee Hong Ang > --- > arch/arm/mach-socfpga/board.c | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/arch/arm/mach-socfpga/board.c b/arch/arm/mach-socfpga/board.c > index 7c8c05c..5757041 100644 > --- a/arch/arm/mach-socfpga/board.c > +++ b/arch/arm/mach-socfpga/board.c > @@ -86,3 +86,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) Why is this __weak ? [...]