diff options
author | Silvano di Ninno <silvano.dininno@nxp.com> | 2018-03-23 11:39:32 +0100 |
---|---|---|
committer | Silvano di Ninno <silvano.dininno@nxp.com> | 2018-08-02 15:37:21 +0200 |
commit | 3d6ca66d318b64f4f862673acf5a1925a88994c4 (patch) | |
tree | cdc589748743a52d3eb4830089c5142848752a0a /core | |
parent | 53bf1c3873c417c20c5481a9760b1ff853f9ceaf (diff) |
drivers: imx_wdog driver cleanup
use WDT_WCR defined in watchdog specific imx_wdog.h
instead of WCR_OFF defined in the platform imx-regs.h
Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/drivers/imx_wdog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/drivers/imx_wdog.c b/core/drivers/imx_wdog.c index cb9b2bfa..44df9c00 100644 --- a/core/drivers/imx_wdog.c +++ b/core/drivers/imx_wdog.c @@ -60,7 +60,7 @@ void imx_wdog_restart(void) DMSG("val %x\n", val); - write16(val, wdog_base + WCR_OFF); + write16(val, wdog_base + WDT_WCR); dsb(); if (read16(wdog_base + WDT_WCR) & WDT_WCR_WDE) { @@ -68,8 +68,8 @@ void imx_wdog_restart(void) write16(WDT_SEQ2, wdog_base + WDT_WSR); } - write16(val, wdog_base + WCR_OFF); - write16(val, wdog_base + WCR_OFF); + write16(val, wdog_base + WDT_WCR); + write16(val, wdog_base + WDT_WCR); while (1) ; |