Re: [U-Boot] [PATCH v4 08/20] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-02-02 Thread Lukasz Majewski
On Fri, 1 Feb 2019 16:40:13 +
Abel Vesa  wrote:

> This matches one of the following three boards (or fails):
>  - imx6q-sabreauto
>  - imx6qp-sabreauto
>  - imx6dl-sabreauto
> 

Reviewed-by: Lukasz Majewski 

> Signed-off-by: Abel Vesa 
> Reviewed-by: Peng Fan 
> ---
>  board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c
> b/board/freescale/mx6sabreauto/mx6sabreauto.c index c1bef85..c8f1263
> 100644 --- a/board/freescale/mx6sabreauto/mx6sabreauto.c
> +++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
> @@ -1097,3 +1097,21 @@ void board_init_f(ulong dummy)
>   board_init_r(NULL, 0);
>  }
>  #endif
> +
> +#ifdef CONFIG_SPL_LOAD_FIT
> +int board_fit_config_name_match(const char *name)
> +{
> + if (is_mx6dq()) {
> + if (!strcmp(name, "imx6q-sabreauto"))
> + return 0;
> + } else if (is_mx6dqp()) {
> + if (!strcmp(name, "imx6qp-sabreauto"))
> + return 0;
> + } else if (is_mx6dl()) {
> + if (!strcmp(name, "imx6dl-sabreauto"))
> + return 0;
> + }
> +
> + return -1;
> +}
> +#endif




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lu...@denx.de


pgpkRHl0W666R.pgp
Description: OpenPGP digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


Re: [U-Boot] [PATCH v4 08/20] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-02-02 Thread Fabio Estevam
On Fri, Feb 1, 2019 at 2:50 PM Abel Vesa  wrote:
>
> This matches one of the following three boards (or fails):
>  - imx6q-sabreauto
>  - imx6qp-sabreauto
>  - imx6dl-sabreauto
>
> Signed-off-by: Abel Vesa 
> Reviewed-by: Peng Fan 

Reviewed-by: Fabio Estevam 
___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot


[U-Boot] [PATCH v4 08/20] board: mx6sabreauto: Add board_fit_config_name_match to support FIT in SPL

2019-02-01 Thread Abel Vesa
This matches one of the following three boards (or fails):
 - imx6q-sabreauto
 - imx6qp-sabreauto
 - imx6dl-sabreauto

Signed-off-by: Abel Vesa 
Reviewed-by: Peng Fan 
---
 board/freescale/mx6sabreauto/mx6sabreauto.c | 18 ++
 1 file changed, 18 insertions(+)

diff --git a/board/freescale/mx6sabreauto/mx6sabreauto.c 
b/board/freescale/mx6sabreauto/mx6sabreauto.c
index c1bef85..c8f1263 100644
--- a/board/freescale/mx6sabreauto/mx6sabreauto.c
+++ b/board/freescale/mx6sabreauto/mx6sabreauto.c
@@ -1097,3 +1097,21 @@ void board_init_f(ulong dummy)
board_init_r(NULL, 0);
 }
 #endif
+
+#ifdef CONFIG_SPL_LOAD_FIT
+int board_fit_config_name_match(const char *name)
+{
+   if (is_mx6dq()) {
+   if (!strcmp(name, "imx6q-sabreauto"))
+   return 0;
+   } else if (is_mx6dqp()) {
+   if (!strcmp(name, "imx6qp-sabreauto"))
+   return 0;
+   } else if (is_mx6dl()) {
+   if (!strcmp(name, "imx6dl-sabreauto"))
+   return 0;
+   }
+
+   return -1;
+}
+#endif
-- 
2.7.4

___
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot