watchdog: designware: Optionally fetch clock and reset from DT
authorMarek Vasut <marex@denx.de>
Thu, 3 Oct 2019 12:47:07 +0000 (14:47 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 5 Feb 2020 02:01:57 +0000 (03:01 +0100)
commitcf89ef8d10f240554541c20b2e1bdcdd58d1d7e6
tree21d5696946d525f937cbe0e9618330c1657cba42
parentcf8c8367884c32844bb002bf6eba02e72a0d75b2
watchdog: designware: Optionally fetch clock and reset from DT

Add optional support for fetching watchdog clock rate from DT
and ungating reset via reset framework. This is optional as not
all platforms using DW WDT support the clock and reset frameworks
yet.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <chin.liang.see@intel.com>
Cc: Dalon Westergreen <dwesterg@gmail.com>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Philipp Tomisch <philipp.tomisch@theobroma-systems.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # roc-rk3399-pc
drivers/watchdog/designware_wdt.c