X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=drivers%2Fwatchdog%2Fimx_watchdog.c;h=ee53a582515f15ac43e29dfa92703ed66ca24652;hb=8ec346e17b5bf6897f038b8ecc3ecd073e097a22;hp=50e602af127b33eef7ab7320a9a552630b8fdc7b;hpb=a78dac79ede7fbb4c9e816abc879655540c3f076;p=karo-tx-uboot.git diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index 50e602af12..ee53a58251 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -55,12 +55,7 @@ void reset_cpu(ulong addr) { struct watchdog_regs *wdog = (struct watchdog_regs *)WDOG1_BASE_ADDR; - writew(WCR_WDE, &wdog->wcr); - writew(0x5555, &wdog->wsr); - writew(0xaaaa, &wdog->wsr); /* load minimum 1/2 second timeout */ while (1) { - /* - * spin for .5 seconds before reset - */ + writew(0, &wdog->wcr); /* clear SRS initiating SOFT reset */ } }