From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Mon, 28 Aug 2017 14:28:58 +0800 Subject: [U-Boot] [PATCH V2 06/12] imx: mx6sabresd: implement board_fit_config_name_match In-Reply-To: <1503901744-21087-1-git-send-email-peng.fan@nxp.com> References: <1503901744-21087-1-git-send-email-peng.fan@nxp.com> Message-ID: <1503901744-21087-6-git-send-email-peng.fan@nxp.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Implement board_fit_config_name_match. Signed-off-by: Peng Fan Cc: Stefano Babic Cc: Fabio Estevam --- V2: none board/freescale/mx6sabresd/mx6sabresd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 9a562b3..fa75ab0 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -734,6 +734,19 @@ int spl_start_uboot(void) } #endif +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (is_mx6dq() && !strcmp(name, "imx6q-sabresd")) + return 0; + else if (is_mx6sdl() && !strcmp(name, "imx6dl-sabresd")) + return 0; + else if (is_mx6dqp() && !strcmp(name, "imx6qp-sabresd")) + return 0; + return -EINVAL; +} +#endif + static void ccgr_init(void) { struct mxc_ccm_reg *ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR; -- 2.6.2