Skip to content
Snippets Groups Projects
Commit 623d96e8 authored by Peng Fan's avatar Peng Fan Committed by Stefano Babic
Browse files

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: default avatarPeng Fan <Peng.Fan@freescale.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Sebastian Siewior <bigeasy@linutronix.de>
Tested-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
parent c3c8a574
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment