rockchip: make the global board_fit_config_name_match __weak
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Fri, 17 Jan 2020 20:37:09 +0000 (21:37 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 19 Feb 2020 08:45:38 +0000 (16:45 +0800)
The core Rockchip spl code contains a default board_fit_config_name_match
implementation doing nothing. Individual boards may want to handle this
differently, so add a __weak atribute to make it possible to override
this function in other places.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/mach-rockchip/spl.c

index 7d0e6fa1aff3a921b1e515042876b300508f9950..48ab0e60c6364059bb02f5247a2bdbd2ce63b490 100644 (file)
@@ -147,7 +147,7 @@ void board_init_f(ulong dummy)
 }
 
 #ifdef CONFIG_SPL_LOAD_FIT
-int board_fit_config_name_match(const char *name)
+int __weak board_fit_config_name_match(const char *name)
 {
        /* Just empty function now - can't decide what to choose */
        debug("%s: %s\n", __func__, name);