Skip to content
Commit 1689e0f8 authored by Quanyang Wang's avatar Quanyang Wang Committed by Bruce Ashfield
Browse files

watchdog: sp804: enable sp804 watchdog to syscon reset register



There are 8 sp804 timers in axm56xx. Timer 5 and 6 are used to be watchdog
since their interrupt connect to System Reset or Chip Reset.

At first we modify the dts file to assign correct reg address to these
2 watchdogs according to Reference Manual.

And then we should use of_device_is_compatible to filter other sp804
timer nodes which share the same amba PCellID with sp804 watchdog since
probe function is called just according to "arm,primecell-periphid" in
dts file.

And we also need enable the wd*_reset_enable bit in Reset Control Register.

Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: default avatarBruce Ashfield <bruce.ashfield@gmail.com>
parent adbfe782
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment