mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 21:51:31 +00:00
armv7R: K3: am654: Trigger panic on DDR init failures
When initializing DDR from R5 SPL trigger U-Boot's panic facility rather than simply returning from the board init function as there is little point continuing code execution. Further, as panic implies a board reset, so using it might potentially allow to recover from this error in certain cases such as when the init failure was caused by a temporary glitch of some sorts. Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
d7ee66af02
commit
3e9b9c1ccd
1 changed files with 2 additions and 4 deletions
|
@ -83,10 +83,8 @@ void board_init_f(ulong dummy)
|
||||||
|
|
||||||
#ifdef CONFIG_K3_AM654_DDRSS
|
#ifdef CONFIG_K3_AM654_DDRSS
|
||||||
ret = uclass_get_device(UCLASS_RAM, 0, &dev);
|
ret = uclass_get_device(UCLASS_RAM, 0, &dev);
|
||||||
if (ret) {
|
if (ret)
|
||||||
printf("DRAM init failed: %d\n", ret);
|
panic("DRAM init failed: %d\n", ret);
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue