watchdog: sp805_wdt: get platform clock from dt file
authorRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Mon, 6 Apr 2020 07:59:52 +0000 (13:29 +0530)
committerStefan Roese <sr@denx.de>
Wed, 15 Apr 2020 06:54:07 +0000 (08:54 +0200)
commit19a159f94ac1532ec12cf14a96c9daf172ade988
treed8359bfc34d7c2425b89dfa8cf7f8ed32b7be2c9
parent40d7f3c8d111d4e4b6c1df105d5a4cedf5b7d6c1
watchdog: sp805_wdt: get platform clock from dt file

Get the watchdog platform clock from the DTS file
using clk subsystem and use the same for calculating
ticks in msec.

Signed-off-by: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Signed-off-by: Bharat Kumar Reddy Gooty <bharat.gooty@broadcom.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/sp805_wdt.c