Skip to content
Commit 20a0361a authored by Quanyang Wang's avatar Quanyang Wang Committed by Liwei Song
Browse files

watchdog: sp804: enable sp804 watchdog to syscon reset register

commit 1532feff

 from
https://github.com/axxia/linux-yocto.git v5.10/standard/axxia-dev/base.

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>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent 5311c95d
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