]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: watchdog: add mcf watchdog support
authorAngelo Dureghello <angelo@kernel-space.org>
Sat, 24 Jun 2023 20:30:18 +0000 (22:30 +0200)
committerAngelo Dureghello <angelo@kernel-space.org>
Tue, 25 Jul 2023 21:21:42 +0000 (23:21 +0200)
commit9b8bc514a0a6c26459227ffa85e2a093bba56780
treeeb19edf13caf3edde76a70c442aafac47d6f2704
parent74c521912acac98d09b221478cea156bf0c2013e
drivers: watchdog: add mcf watchdog support

This watchdog driver applies to the following
mcf families:

- mcf52x2 (5271 5275 5282)
- mcf532x (5329 5373)
- mcf523x (5235)

Cpu's not listed for each family does not have WDT module.

Note, after some attempts testing by qemu on 5208 i
finally abandoned, watchdog seems not implemented properly.

The driver has been tested in a real M5282EVM.

Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
---
Changes for v2:
- remove unnecessary hardcoded timeouts
- remove unnecessary hw_watchdog_xxx stuff
- rewrite wdog module reg calculation
- using IS_ENABLED() where possible
Changes for v3:
- remove hardcoded 4s test
drivers/watchdog/Kconfig
drivers/watchdog/Makefile
drivers/watchdog/mcf_wdt.c [new file with mode: 0644]