]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
watchdog: meson: Add meson8b SoC specific data
authorCarlo Caione <carlo@endlessm.com>
Sun, 8 Nov 2015 12:18:55 +0000 (13:18 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 28 Dec 2015 21:09:39 +0000 (22:09 +0100)
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>
drivers/watchdog/meson_wdt.c

index 96036298529fe43bbd1d8808906fc76ca9135e5f..aea5d2f44ad7b87f344fed2815ecd7990e9778aa 100644 (file)
@@ -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);