diff options
author | Pali Rohár <pali@kernel.org> | 2021-08-09 17:44:35 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2021-08-11 08:42:26 +0200 |
commit | 7e1c0d0dca7fc382bb0a857e15019e7033b80fd2 (patch) | |
tree | 7da210d60fd2724218549977027eec37bc83e229 | |
parent | 4cd61c43fd513a8a0558db2d0d237d612e2d5e73 (diff) | |
download | u-boot-7e1c0d0dca7fc382bb0a857e15019e7033b80fd2.zip u-boot-7e1c0d0dca7fc382bb0a857e15019e7033b80fd2.tar.gz u-boot-7e1c0d0dca7fc382bb0a857e15019e7033b80fd2.tar.bz2 |
arm: mvebu: Hang if ddr3_init() fails
If ddr3_init() fails then DDR was not initialized and we cannot load and
execute U-Boot. We cannot continue, we cannot do anything in this case, so
hang.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
-rw-r--r-- | arch/arm/mach-mvebu/spl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-mvebu/spl.c b/arch/arm/mach-mvebu/spl.c index 3b6bc38..f0cf60b 100644 --- a/arch/arm/mach-mvebu/spl.c +++ b/arch/arm/mach-mvebu/spl.c @@ -345,7 +345,11 @@ void board_init_f(ulong dummy) serdes_phy_config(); /* Setup DDR */ - ddr3_init(); + ret = ddr3_init(); + if (ret) { + debug("ddr3_init() failed: %d\n", ret); + hang(); + } #endif /* Initialize Auto Voltage Scaling */ |