From: Marek Behún Date: Thu, 17 Feb 2022 12:54:43 +0000 (+0100) Subject: arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-logo.png?a=commitdiff_plain;h=4b7db75616712606fd6b61a13df38326e41b3301;p=u-boot.git arm: mvebu: turris_omnia: Reset the board immediately on DDR training failure The state of the current DDR training code for Armada 38x is such that we cannot be sure it will always train successfully - although after the last change we were yet unable to find a board that failed DDR training, from experience in the last 2 years we know that it is possible. The experience also tells us that in many cases the board fails training only sometimes, and after a reset the training is successful. Enable the new option that makes the board reset itself on DDR training failure immediately. Until now we called hang() in such a case, which meant that the board was reset by the MCU after 120 seconds. Signed-off-by: Marek Behún Reviewed-by: Stefan Roese Reviewed-by: Pali Rohár --- diff --git a/configs/turris_omnia_defconfig b/configs/turris_omnia_defconfig index 938683616b..280dd55f00 100644 --- a/configs/turris_omnia_defconfig +++ b/configs/turris_omnia_defconfig @@ -11,6 +11,7 @@ CONFIG_NR_DRAM_BANKS=2 CONFIG_SYS_MEMTEST_START=0x00800000 CONFIG_SYS_MEMTEST_END=0x00ffffff CONFIG_TARGET_TURRIS_OMNIA=y +CONFIG_DDR_RESET_ON_TRAINING_FAILURE=y CONFIG_ENV_SIZE=0x10000 CONFIG_ENV_OFFSET=0xF0000 CONFIG_ENV_SECT_SIZE=0x10000