[U-Boot] [PATCH 43/48] stm32mp1: ram: reload watchdog during ddr test
Patrick Delaunay
patrick.delaunay at st.com
Tue Jul 30 17:16:51 UTC 2019
Avoid watchdog during infinite DDR test.
Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
---
drivers/ram/stm32mp1/stm32mp1_tests.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c
index 7356802..f947b5d 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;
}
--
2.7.4
More information about the U-Boot
mailing list