]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
watchdog: tegra: get expiry count from DT
authorAllen Yu <alleny@nvidia.com>
Mon, 5 Jun 2017 06:57:28 +0000 (12:27 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 7 Jul 2017 23:29:43 +0000 (16:29 -0700)
commit3e47435c126c8c0e43effe1587db1aef5e4198d0
treeeaa483ccd93c76a00224c59b0c4d2bcc69fbca73
parent9e3217293821dd9b147918e747d33073e0785ed4
watchdog: tegra: get expiry count from DT

The total expiry count of Tegra WDTs is limited to HW design and depends
on skip configuration if supported. This change adds support to get the
expiry count through device tree. To be safe, we set the default expiry
count to 1, in case device tree doesn't provide the value.

(adapted from commit 9a947bd96bd93cd8e81217fc9ad5eeb0bb2e1e9f)

Bug 200314562

Change-Id: I50316bf34df8d63fe660c46c6baecc85276859e2
Signed-off-by: Allen Yu <alleny@nvidia.com>
Signed-off-by: Shreshtha SAHU <ssahu@nvidia.com>
Reviewed-on: https://git-master/r/1515194
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
drivers/watchdog/tegra_wdt.c