[rtems commit] bsp/imx: More robust and faster bsp_reset()

Sebastian Huber sebh at rtems.org
Thu Nov 2 12:44:20 UTC 2017


Module:    rtems
Branch:    master
Commit:    4438c4d826cd7f711b5af56e3c0170ea83b66ad8
Changeset: http://git.rtems.org/rtems/commit/?id=4438c4d826cd7f711b5af56e3c0170ea83b66ad8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Nov  2 13:27:33 2017 +0100

bsp/imx: More robust and faster bsp_reset()

Update #3090.

---

 c/src/lib/libbsp/arm/imx/startup/bspreset.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/arm/imx/startup/bspreset.c b/c/src/lib/libbsp/arm/imx/startup/bspreset.c
index 5e2cf39..c3c9f69 100644
--- a/c/src/lib/libbsp/arm/imx/startup/bspreset.c
+++ b/c/src/lib/libbsp/arm/imx/startup/bspreset.c
@@ -23,9 +23,9 @@ void bsp_reset(void)
   imx_uart_console_drain();
 
   pcr = (volatile uint16_t *) 0x30280000;
-  *pcr &= ~WDOG_CR_SRS;
-  *pcr &= ~WDOG_CR_SRS;
-  *pcr &= ~WDOG_CR_SRS;
+  *pcr = WDOG_CR_WDE;
+  *pcr = WDOG_CR_WDE;
+  *pcr = WDOG_CR_WDE;
 
   while (true) {
     /* Wait */



More information about the vc mailing list