arm: stm32mp: spl: update error management in board_init_f
Call hang when an error is detected for probe of any driver needed for console or DDR init: clk, reset and pincontrol NB: previous behavior with a return in board_init_f() was not correct; DDR is not initialized and SPL execution can't continue Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
586117ce80
commit
eaec1f9e90
1 changed files with 3 additions and 3 deletions
|
@ -99,19 +99,19 @@ void board_init_f(ulong dummy)
|
||||||
ret = uclass_get_device(UCLASS_CLK, 0, &dev);
|
ret = uclass_get_device(UCLASS_CLK, 0, &dev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("Clock init failed: %d\n", ret);
|
debug("Clock init failed: %d\n", ret);
|
||||||
return;
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = uclass_get_device(UCLASS_RESET, 0, &dev);
|
ret = uclass_get_device(UCLASS_RESET, 0, &dev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("Reset init failed: %d\n", ret);
|
debug("Reset init failed: %d\n", ret);
|
||||||
return;
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = uclass_get_device(UCLASS_PINCTRL, 0, &dev);
|
ret = uclass_get_device(UCLASS_PINCTRL, 0, &dev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
debug("%s: Cannot find pinctrl device\n", __func__);
|
debug("%s: Cannot find pinctrl device\n", __func__);
|
||||||
return;
|
hang();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* enable console uart printing */
|
/* enable console uart printing */
|
||||||
|
|
Loading…
Reference in a new issue