summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/meson_wdt.c
diff options
context:
space:
mode:
authorCarlo Caione <carlo@endlessm.com>2015-11-08 13:18:55 +0100
committerWim Van Sebroeck <wim@iguana.be>2015-12-28 22:09:39 +0100
commit71388840ec360e0489be7a75971b595c729b5323 (patch)
tree1d606a0fb76e262a3c83cd3252a712a7c98b5561 /drivers/watchdog/meson_wdt.c
parentwatchdog: meson: Enable meson SoC specific data (diff)
downloadlinux-71388840ec360e0489be7a75971b595c729b5323.tar.xz
linux-71388840ec360e0489be7a75971b595c729b5323.zip
watchdog: meson: Add meson8b SoC specific data
Add SoC specific data in the watchdog driver for the meson8b SoC. Signed-off-by: Carlo Caione <carlo@endlessm.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/meson_wdt.c')
-rw-r--r--drivers/watchdog/meson_wdt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/watchdog/meson_wdt.c b/drivers/watchdog/meson_wdt.c
index 96036298529f..aea5d2f44ad7 100644
--- a/drivers/watchdog/meson_wdt.c
+++ b/drivers/watchdog/meson_wdt.c
@@ -50,6 +50,12 @@ static struct meson_wdt_data meson6_wdt_data = {
.count_unit = 100000, /* 10 us */
};
+static struct meson_wdt_data meson8b_wdt_data = {
+ .enable = BIT(19),
+ .terminal_count_mask = 0xffff,
+ .count_unit = 7812, /* 128 us */
+};
+
struct meson_wdt_dev {
struct watchdog_device wdt_dev;
void __iomem *wdt_base;
@@ -148,6 +154,7 @@ static const struct watchdog_ops meson_wdt_ops = {
static const struct of_device_id meson_wdt_dt_ids[] = {
{ .compatible = "amlogic,meson6-wdt", .data = &meson6_wdt_data },
+ { .compatible = "amlogic,meson8b-wdt", .data = &meson8b_wdt_data },
{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(of, meson_wdt_dt_ids);