summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-04-22 14:29:10 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2020-05-14 09:02:12 +0200
commiteaec1f9e90241e9fde5540f6da28063df730102f (patch)
treea2e2fb77bbf801f149577d6180c6a39cbb375d1b /arch
parent586117ce804ee38d0ad8643f9be440c15636ea82 (diff)
downloadu-boot-eaec1f9e90241e9fde5540f6da28063df730102f.tar.gz
u-boot-eaec1f9e90241e9fde5540f6da28063df730102f.tar.bz2
u-boot-eaec1f9e90241e9fde5540f6da28063df730102f.zip
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-stm32mp/spl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c
index 760fe45f56..6368db4f6d 100644
--- a/arch/arm/mach-stm32mp/spl.c
+++ b/arch/arm/mach-stm32mp/spl.c
@@ -99,19 +99,19 @@ void board_init_f(ulong dummy)
ret = uclass_get_device(UCLASS_CLK, 0, &dev);
if (ret) {
debug("Clock init failed: %d\n", ret);
- return;
+ hang();
}
ret = uclass_get_device(UCLASS_RESET, 0, &dev);
if (ret) {
debug("Reset init failed: %d\n", ret);
- return;
+ hang();
}
ret = uclass_get_device(UCLASS_PINCTRL, 0, &dev);
if (ret) {
debug("%s: Cannot find pinctrl device\n", __func__);
- return;
+ hang();
}
/* enable console uart printing */