[U-Boot] [PATCH] Added watchdog support for davinchi_dm365evm
Mike Frysinger
vapier at gentoo.org
Thu Jul 19 15:28:26 CEST 2012
On Saturday 02 June 2012 11:32:14 Stijn Souffriau wrote:
> On 05/20/2012 08:59 PM, Mike Frysinger wrote:
> > On Sunday 20 May 2012 12:50:40 Stijn Souffriau wrote:
> >> --- a/board/davinci/dm365evm/dm365evm.c
> >> +++ b/board/davinci/dm365evm/dm365evm.c
> >>
> >> +#ifdef CONFIG_HW_WATCHDOG
> >> +static struct davinci_timer * const wdttimer =
> >> + (struct davinci_timer *)CONFIG_SYS_WDTTIMERBASE;
> >> +
> >> +/* WDTCR bit definitions */
> >> +#define WDEN (1<< 14)
> >> +#define WDFLAG (1<< 15)
> >> +#define WDKEY_SEQ0 (0xa5c6<< 16)
> >> +#define WDKEY_SEQ1 (0xda7e<< 16)
> >
> > if this is an on-chip hardware block, this stuff should be in an
> > SoC-specific header
>
> Yes but as far as I know It only works for the davinci dm356evm.
if it's part of the SoC, then i don't see how it could only work for one
board. SoC bits belong in the SoC tree (arch/arm/<soc>/...) while board bits
belong in the board tree (board/...).
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120719/fdad3a6d/attachment.pgp>
More information about the U-Boot
mailing list