apalis_imx6: add board_fit_config_name_match to support FIT in SPL
PATCH 1/1 apalis_imx6: add board_fit_config_name_match to support FIT in SPL
Only one dtb is currently supported, so match with imx6-apalis.
--- board/toradex/apalis_imx6/apalis_imx6.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
board/toradex/apalis_imx6/apalis_imx6.c +10 -0
@@ -1121,6 +1121,16 @@ void board_init_f(ulong dummy)board_init_r (NULL ,0 ); } +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match (const char *name) +{ +if (!strcmp (name,"imx6-apalis" )) +return 0 ; + +return -1 ; +} +#endif +void reset_cpu (ulong addr) { }
Signature · 1 line
2.23.0
PATCH 1/1 apalis_imx6: add board_fit_config_name_match to support FIT in SPL
Quoted 21 lines
Subject: [PATCH]
apalis_imx6: addboard_fit_config_name_matchto support FIT in SPLOnly one dtb is currently supported, so match with imx6-apalis.
Signed-off-by Ricardo Salveti <[email protected]>--- board/toradex/apalis_imx6/apalis_imx6.c | 10 ++++++++++ 1 file changed, 10 insertions(+)board/toradex/apalis_imx6/apalis_imx6.c +2
-0@@ -1121,6 +1121,16 @@ void board_init_f(ulong dummy)board_init_r (NULL ,0 ); } +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match (const char *name) {
board/toradex/apalis_imx6/apalis_imx6.c void board_init_f(ulong dummy) · line 1135
Quoted 10 lines
board/toradex/apalis_imx6/apalis_imx6.c +7
-0+if (!strcmp (name,"imx6-apalis" )) +return 0 ; + + return -1; +} +#endif +void reset_cpu (ulong addr) { }
Quoted 2 lines
--
2.23.0
PATCH 1/1 apalis_imx6: add board_fit_config_name_match to support FIT in SPL
In reply to Ricardo SalvetiQuoted 18 lines · Ricardo Salveti
Only one dtb is currently supported, so match with imx6-apalis.
Signed-off-by Ricardo Salveti <[email protected]>--- board/toradex/apalis_imx6/apalis_imx6.c | 10 ++++++++++ 1 file changed, 10 insertions(+)board/toradex/apalis_imx6/apalis_imx6.c +3
-0@@ -1121,6 +1121,16 @@ void board_init_f(ulong dummy)board_init_r (NULL ,0 ); } +#ifdef CONFIG_SPL_LOAD_FIT +int board_fit_config_name_match (const char *name) +{
board/toradex/apalis_imx6/apalis_imx6.c void board_init_f(ulong dummy) · line 1136
Quoted 10 lines
board/toradex/apalis_imx6/apalis_imx6.c +7
-0+if (!strcmp (name,"imx6-apalis" )) +return 0 ; + + return -1; +} +#endif +void reset_cpu (ulong addr) { }
I assume that you do not want to switch on CONFIG_SPL_LOAD_FIT (or OP-TEE) for the apalis_imx6_defconfig but do this rather as a preparation for a board variant.