linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@roeck-us.net (Guenter Roeck)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 2/4] watchdog: meson: Add meson8b SoC specific data
Date: Mon, 9 Nov 2015 07:03:54 -0800	[thread overview]
Message-ID: <5640B5DA.7040901@roeck-us.net> (raw)
In-Reply-To: <1446985137-25498-3-git-send-email-carlo@caione.org>

On 11/08/2015 04:18 AM, Carlo Caione wrote:
> From: Carlo Caione <carlo@endlessm.com>
>
> Add SoC specific data in the watchdog driver for the meson8b SoC.
>
> Signed-off-by: Carlo Caione <carlo@endlessm.com>

Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> ---
>   drivers/watchdog/meson_wdt.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/drivers/watchdog/meson_wdt.c b/drivers/watchdog/meson_wdt.c
> index 89734f0..3ec1e91 100644
> --- a/drivers/watchdog/meson_wdt.c
> +++ b/drivers/watchdog/meson_wdt.c
> @@ -52,6 +52,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;
> @@ -153,6 +159,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);
>

  reply	other threads:[~2015-11-09 15:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-08 12:18 [PATCH v3 0/4] watchdog: meson: Add meson8b watchdog Carlo Caione
2015-11-08 12:18 ` [PATCH v3 1/4] watchdog: meson: Enable meson SoC specific data Carlo Caione
2015-11-09 15:03   ` Guenter Roeck
2015-11-11  8:54     ` Carlo Caione
2015-11-24 18:19       ` Guenter Roeck
2015-11-25  9:25         ` Carlo Caione
2015-11-25 14:20           ` Guenter Roeck
2015-11-08 12:18 ` [PATCH v3 2/4] watchdog: meson: Add meson8b " Carlo Caione
2015-11-09 15:03   ` Guenter Roeck [this message]
2015-11-08 12:18 ` [PATCH v3 3/4] Documentation: watchdog: Add new bindings for meson8b Carlo Caione
2015-11-09 15:07   ` Guenter Roeck
2015-11-08 12:18 ` [PATCH v3 4/4] ARM: dts: meson8b: Add watchdog node Carlo Caione
2015-11-09 15:11   ` Guenter Roeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5640B5DA.7040901@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).