From: Tom <Tom.Rix@windriver.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards
Date: Mon, 28 Sep 2009 09:28:40 -0500 [thread overview]
Message-ID: <4AC0C818.7080503@windriver.com> (raw)
In-Reply-To: <20090928153638.3067fff2@marrow.netinsight.se>
Simon Kagstrom wrote:
> On Mon, 28 Sep 2009 07:36:32 -0500
> Tom <Tom.Rix@windriver.com> wrote:
>
>>> +void hw_watchdog_reset(void)
>>> +{
>>> + unsigned long time = CONFIG_SYS_TCLK * watchdog_timeout;
>>> diff --git a/include/asm-arm/arch-kirkwood/cpu.h b/include/asm-arm/arch-kirkwood/cpu.h
>>> index b3022a3..df49c3f 100644
>>> --- a/include/asm-arm/arch-kirkwood/cpu.h
>>> +++ b/include/asm-arm/arch-kirkwood/cpu.h
>>> @@ -165,5 +165,7 @@ int kw_config_mpp(unsigned int mpp0_7, unsigned int mpp8_15,
>>> unsigned int mpp32_39, unsigned int mpp40_47,
>>> unsigned int mpp48_55);
>>> unsigned int kw_winctrl_calcsize(unsigned int sizeval);
>>> +void kw_watchdog_init(unsigned long timeout_secs);
>> You should add hw_watchdog_reset to H the file or declare it static.
>
> It's a public interface and defined in include/watchdog.h (this is
> what's being called by WATCHDOG_RESET), but I'll submit a new patch
> which includes this.
Yes thanks. My mistake.
A new patch is not needed.
>
>> You may want to add #define stubs to handle the ifndef CONFIG_HW_WATCHDOG.
>
> I'm afraid I don't understand this comment though, what is the
> suggestion here?
>
> // Simon
Something like this is already being done in watchdog.h
So it it not needed.
#ifdef CONFIG_HW_WATCHDOG
#if defined(__ASSEMBLY__)
#define WATCHDOG_RESET bl hw_watchdog_reset
#else
extern void hw_watchdog_reset(void);
#define WATCHDOG_RESET hw_watchdog_reset
#endif /* __ASSEMBLY__ */
#else
<snip>
/*
* No hardware or software watchdog.
*/
#if defined(__ASSEMBLY__)
#define WATCHDOG_RESET /*XXX DO_NOT_DEL_THIS_COMMENT*/
#else
----> stub #define WATCHDOG_RESET() {}
#endif /* __ASSEMBLY__ */
#endif /* CONFIG_WATCHDOG && !__ASSEMBLY__ */
#endif /* CONFIG_HW_WATCHDOG */
Thanks for making your changes clear to me.
Ack-ed
Tom
next prev parent reply other threads:[~2009-09-28 14:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-28 7:06 [U-Boot] [PATCH] arm:kirkwood: Add hardware watchdog support for Marvell Kirkwood boards Simon Kagstrom
2009-09-28 12:36 ` Tom
2009-09-28 13:36 ` Simon Kagstrom
2009-09-28 14:28 ` Tom [this message]
2009-09-29 2:16 ` Prafulla Wadaskar
2009-09-29 8:28 ` Simon Kagstrom
2009-09-29 13:45 ` Prafulla Wadaskar
2009-09-29 13:59 ` Stefan Roese
2009-09-29 14:01 ` Simon Kagstrom
2009-10-28 8:17 ` Simon Kagstrom
2009-10-28 9:24 ` Prafulla Wadaskar
2009-10-28 9:53 ` Simon Kagstrom
2009-10-28 11:34 ` Prafulla Wadaskar
2009-10-28 12:44 ` Simon Kagstrom
2009-10-28 12:57 ` Prafulla Wadaskar
2009-10-28 13:05 ` Simon Kagstrom
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=4AC0C818.7080503@windriver.com \
--to=tom.rix@windriver.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.