aboutsummaryrefslogtreecommitdiff
path: root/drivers/ram/stm32mp1
diff options
context:
space:
mode:
authorPatrick Delaunay2019-07-30 19:16:51 +0200
committerPatrice Chotard2019-08-27 11:19:23 +0200
commit25331ae1c1d9cd200ad5117efa285c7a8c32f3ee (patch)
tree214b3cad48519c066906ef5c8d3c6fdab74a7e35 /drivers/ram/stm32mp1
parent37f41ae900388965dd07486004b65e5f11f9a82e (diff)
stm32mp1: ram: reload watchdog during ddr test
Avoid watchdog during infinite DDR test. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/ram/stm32mp1')
-rw-r--r--drivers/ram/stm32mp1/stm32mp1_tests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c
index 73568022576..f947b5d373e 100644
--- a/drivers/ram/stm32mp1/stm32mp1_tests.c
+++ b/drivers/ram/stm32mp1/stm32mp1_tests.c
@@ -4,6 +4,7 @@
*/
#include <common.h>
#include <console.h>
+#include <watchdog.h>
#include <asm/io.h>
#include <linux/log2.h>
#include "stm32mp1_tests.h"
@@ -154,6 +155,8 @@ static int test_loop_end(u32 *loop, u32 nb_loop, u32 progress)
return 1;
}
printf("loop #%d\n", *loop);
+ WATCHDOG_RESET();
+
return 0;
}