30215aa4e2666566ee8be3732ef05fec6ff97528
[openwrt/openwrt.git] / package / boot / uboot-mvebu / patches / 102-arm-mvebu-turris_omnia-Reset-the-board-immediately-o.patch
1 From 930c46e86123aeea1c73ae55d70ff3dcfc077992 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Marek=20Beh=C3=BAn?= <marek.behun@nic.cz>
3 Date: Thu, 17 Feb 2022 13:54:43 +0100
4 Subject: [PATCH 3/3] arm: mvebu: turris_omnia: Reset the board immediately on
5 DDR training failure
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 The state of the current DDR training code for Armada 38x is such that
11 we cannot be sure it will always train successfully - although after the
12 last change we were yet unable to find a board that failed DDR training,
13 from experience in the last 2 years we know that it is possible.
14
15 The experience also tells us that in many cases the board fails training
16 only sometimes, and after a reset the training is successful.
17
18 Enable the new option that makes the board reset itself on DDR training
19 failure immediately. Until now we called hang() in such a case, which
20 meant that the board was reset by the MCU after 120 seconds.
21
22 Signed-off-by: Marek Behún <marek.behun@nic.cz>
23 Reviewed-by: Stefan Roese <sr@denx.de>
24 Reviewed-by: Pali Rohár <pali@kernel.org>
25 ---
26 configs/turris_omnia_defconfig | 1 +
27 1 file changed, 1 insertion(+)
28
29 --- a/configs/turris_omnia_defconfig
30 +++ b/configs/turris_omnia_defconfig
31 @@ -11,6 +11,7 @@ CONFIG_NR_DRAM_BANKS=2
32 CONFIG_SYS_MEMTEST_START=0x00800000
33 CONFIG_SYS_MEMTEST_END=0x00ffffff
34 CONFIG_TARGET_TURRIS_OMNIA=y
35 +CONFIG_DDR_RESET_ON_TRAINING_FAILURE=y
36 CONFIG_ENV_SIZE=0x10000
37 CONFIG_ENV_OFFSET=0xF0000
38 CONFIG_ENV_SECT_SIZE=0x10000