imx: wdog: correct wcr register settings
authorPeng Fan <[email protected]>
Mon, 14 Sep 2015 05:34:44 +0000 (13:34 +0800)
committerStefano Babic <[email protected]>
Sun, 20 Sep 2015 07:39:35 +0000 (09:39 +0200)
commit623d96e89aca64c2762150087f4e872c55481f13
tree2e5b5b45143720e6352ebe854580eb7f956bc1f6
parentc3c8a5748897b24f18618047804317167a531dd3
imx: wdog: correct wcr register settings

We should not simple use "writew(WCR_WDE, &wdog->wcr)" to set
wcr, since this will override bits set before reset_cpu.

Use clrsetbits_le16 instead of writew to fix this issue.

Signed-off-by: Peng Fan <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Sebastian Siewior <[email protected]>
Tested-by: Fabio Estevam <[email protected]>
drivers/watchdog/imx_watchdog.c