watchdog: cadence: Remove driver specific "timeout-sec" handling
authorStefan Roese <sr@denx.de>
Thu, 11 Apr 2019 13:58:45 +0000 (15:58 +0200)
committerStefan Roese <sr@denx.de>
Fri, 26 Apr 2019 07:16:32 +0000 (09:16 +0200)
commit782ef57edc69652d6f3874e51a47f56d739167bc
tree1118f9fcb2aa294e2b0a86f943a348c78052b176
parent06985289d452ad2423145cfed8cece61a7f8cec6
watchdog: cadence: Remove driver specific "timeout-sec" handling

Now that we have a generic DT property "timeout-sec" handling, the
driver specific implementation can be dropped.

This patch also changes the timeout restriction to the min and max
values (clipping). Before this patch, the value provided via
"timeout-sec" was used if the parameter was too high or low. Now
the driver specific min and max values are used instead.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Michal Simek <michal.simek@xilinx.com> (on zcu100)
drivers/watchdog/cdns_wdt.c