From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V3 1/1] mx31/mx35/mx51/mx53/mx6: add watchdog
Date: Thu, 25 Oct 2012 12:56:22 +0200 [thread overview]
Message-ID: <50891AD6.5090001@denx.de> (raw)
In-Reply-To: <1350955141-15642-1-git-send-email-troy.kisky@boundarydevices.com>
Am 23/10/2012 03:19, schrieb Troy Kisky:
> Use a common watchdog driver for all these cpus.
>
> Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
>
> ---
Hi Troy,
> +++ b/doc/README.watchdog
> @@ -0,0 +1,29 @@
> +Watchdog driver general info
> +
> +CONFIG_HW_WATCHDOG
> + This enables hw_watchdog_reset to be called during various loops,
> + including waiting for a character on a serial port. But it
> + does not also call hw_watchdog_init. Boards which want this
> + enabled must call this function in their board file. This split
> + is useful because some rom's enable the watchdog when downloading
> + new code, so it must be serviced, but the board would rather it
> + was off. And, it cannot always be turned off once on.
> +
> +CONFIG_WATCHDOG_TIMEOUT_MSECS
> + Can be used to change the timeout for i.mx31/35/5x/6x.
> + If not given, will default to maximum timeout. This would
> + be 128000 msec for i.mx31/35/5x/6x.
> +
> +CONFIG_AT91SAM9_WATCHDOG
> + Available for AT91SAM9 to service the watchdog.
> +
> +CONFIG_FTWDT010_WATCHDOG
> + Available for FTWDT010 to service the watchdog.
> +
> +CONFIG_FTWDT010_HW_TIMEOUT
> + Can be used to change the timeout for FTWDT010.
> +
> +CONFIG_IMX_WATCHDOG
> + Available for i.mx31/35/5x/6x to service the watchdog. This is not
> + automatically set because some boards (vision2) still need to define
> + their own hw_watchdog_reset routine.
Thanks for documenting also not i.MX drivers.
> diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
> index 5579bf2..18768b7 100644
> --- a/drivers/watchdog/Makefile
> +++ b/drivers/watchdog/Makefile
> @@ -27,6 +27,9 @@ LIB := $(obj)libwatchdog.o
>
> COBJS-$(CONFIG_AT91SAM9_WATCHDOG) += at91sam9_wdt.o
> COBJS-$(CONFIG_FTWDT010_WATCHDOG) += ftwdt010_wdt.o
> +ifneq (,$(filter $(SOC), mx31 mx35 mx5 mx6))
> +COBJS-y += imx_watchdog.o
> +endif
IMHO I like this solution, also if this driver is always compiled
independently if CONFIG_IMX_WATCHDOG is set, so to link the reset()
function. In any case, there is not a bigger footprint because you
protect watchdog code with the switch. Here my:
Acked-by: Stefano Babic <sbabic@denx.de>
I will just wait a bit for further comment before merging.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2012-10-25 10:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-20 23:03 [U-Boot] [PATCH V2 1/1] mx31/mx35/mx51/mx53/mx6: add watchdog Troy Kisky
2012-08-21 6:11 ` Stefano Babic
2012-08-21 17:51 ` Troy Kisky
2012-08-22 7:22 ` Stefano Babic
2012-08-22 18:30 ` Troy Kisky
2012-08-22 18:37 ` Troy Kisky
2012-08-23 9:19 ` Stefano Babic
2012-09-01 7:59 ` Stefano Babic
2012-10-23 1:19 ` [U-Boot] [PATCH V3 " Troy Kisky
2012-10-25 10:56 ` Stefano Babic [this message]
2012-10-28 11:48 ` Stefano Babic
2013-01-11 23:26 ` Troy Kisky
2013-01-13 10:43 ` Stefano Babic
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=50891AD6.5090001@denx.de \
--to=sbabic@denx.de \
--cc=u-boot@lists.denx.de \
/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