zynq: Convert arm twd timer to DM driver

Move arm twd timer driver from zynq to generic location.

DM timer drivers are designed differently to original driver. Timer is
counting up and not down.
Information about clock rates are find out in timer_pre_probe() that's
why there is no need to get any additional information from DT in the
driver itself (only register offset).

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Link: https://lore.kernel.org/r/20220805061629.1207-1-stefan.herbrechtsmeier-oss@weidmueller.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
This commit is contained in:
Stefan Herbrechtsmeier
2022-08-05 08:16:28 +02:00
committed by Michal Simek
parent 98b3a998b3
commit b7e0750d88
8 changed files with 123 additions and 116 deletions

View File

@@ -73,6 +73,12 @@ config ARC_TIMER
usually at least one of them exists. Either of them is supported
in U-Boot.
config ARM_TWD_TIMER
bool "ARM timer watchdog (TWD) timer support"
depends on TIMER && CLK
help
Select this to enable support for the ARM global timer watchdog timer.
config AST_TIMER
bool "Aspeed ast2400/ast2500 timer support"
depends on TIMER