diff --git a/lib/hang.c b/lib/hang.c index 9246e12455..1ceafd4257 100644 --- a/lib/hang.c +++ b/lib/hang.c @@ -11,6 +11,9 @@ #include #include +#ifdef CONFIG_SPL_BUILD +__weak void spl_hang_reset(void) {} +#endif /** * hang - stop processing by staying in an endless loop * @@ -26,6 +29,9 @@ void hang(void) puts("### ERROR ### Please RESET the board ###\n"); #endif bootstage_error(BOOTSTAGE_ID_NEED_RESET); +#ifdef CONFIG_SPL_BUILD + spl_hang_reset(); +#endif for (;;) ; }