Skip to content

Commit

Permalink
watchdog: meson: Add meson8b SoC specific data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Carlo Caione authored and Wim Van Sebroeck committed Dec 28, 2015
1 parent 943bf1f commit 7138884
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/watchdog/meson_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 7138884

Please sign in to comment.