diff options
author | Jagan Teki <jagannadh.teki@gmail.com> | 2017-11-20 21:32:11 +0300 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-11-27 12:36:40 +0300 |
commit | a1797beed262b171645af867303ecf76aad66178 (patch) | |
tree | afaf2b917098f76ea8a8109294cb65a6c95d91b8 | |
parent | 409b16d3e09da3c738b925311e3e59068558618d (diff) | |
download | u-boot-a1797beed262b171645af867303ecf76aad66178.tar.xz |
i.MX6Q: icorem6: Move spl load fit to common/spl
Move spl load fit code into common/spl
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
-rw-r--r-- | board/engicam/common/spl.c | 16 | ||||
-rw-r--r-- | board/engicam/icorem6/icorem6.c | 12 | ||||
-rw-r--r-- | board/engicam/icorem6_rqs/icorem6_rqs.c | 12 |
3 files changed, 16 insertions, 24 deletions
diff --git a/board/engicam/common/spl.c b/board/engicam/common/spl.c index 8711418fb4..f8ae3acb0d 100644 --- a/board/engicam/common/spl.c +++ b/board/engicam/common/spl.c @@ -39,6 +39,22 @@ static iomux_v3_cfg_t const uart_pads[] = { #endif }; +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match(const char *name) +{ + if (is_mx6dq() && !strcmp(name, "imx6q-icore")) + return 0; + else if (is_mx6dq() && !strcmp(name, "imx6q-icore-rqs")) + return 0; + else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore")) + return 0; + else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore-rqs")) + return 0; + else + return -1; +} +#endif + #ifdef CONFIG_SPL_OS_BOOT int spl_start_uboot(void) { diff --git a/board/engicam/icorem6/icorem6.c b/board/engicam/icorem6/icorem6.c index 59c085bb2c..e173124fa1 100644 --- a/board/engicam/icorem6/icorem6.c +++ b/board/engicam/icorem6/icorem6.c @@ -264,16 +264,4 @@ int board_mmc_init(bd_t *bis) return 0; } #endif - -#ifdef CONFIG_SPL_LOAD_FIT -int board_fit_config_name_match(const char *name) -{ - if (is_mx6dq() && !strcmp(name, "imx6q-icore")) - return 0; - else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore")) - return 0; - else - return -1; -} -#endif #endif /* CONFIG_SPL_BUILD */ diff --git a/board/engicam/icorem6_rqs/icorem6_rqs.c b/board/engicam/icorem6_rqs/icorem6_rqs.c index 8afc9beaf9..84ab936d0f 100644 --- a/board/engicam/icorem6_rqs/icorem6_rqs.c +++ b/board/engicam/icorem6_rqs/icorem6_rqs.c @@ -147,16 +147,4 @@ void board_boot_order(u32 *spl_boot_list) } #endif #endif - -#ifdef CONFIG_SPL_LOAD_FIT -int board_fit_config_name_match(const char *name) -{ - if (is_mx6dq() && !strcmp(name, "imx6q-icore-rqs")) - return 0; - else if ((is_mx6dl() || is_mx6solo()) && !strcmp(name, "imx6dl-icore-rqs")) - return 0; - else - return -1; -} -#endif #endif /* CONFIG_SPL_BUILD */ |