From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergey Lapin Date: Thu, 23 Oct 2008 03:22:53 +0400 Subject: [U-Boot] [PATCH] Hardware watchdog support for AT91SAM9260 CPU In-Reply-To: <20081022214944.GE15487@game.jcrosoft.org> References: <12187529674144-git-send-email-slapin@ossfans.org> <20081022214944.GE15487@game.jcrosoft.org> Message-ID: <20081022232253.GA6694@build.ossfans.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Oct 22, 2008 at 11:49:44PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 02:29 Fri 15 Aug , Sergey Lapin wrote: Dear Jean-Christophe, thanks a lot for your review. > > > Are you from ADI? No, but this file structure is a lot based on blackfin watchdog and I have too little code to make it int full intellectual property, IMHO. > > + * > > + * Licensed under the GPL-2 or later. > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > + > > +#ifdef CONFIG_HW_WATCHDOG > no need please remove Ok, > > +#define AT91_WDT_CR (AT91_WDT+0x00) > ^ > please add space arround '+' Ok. > > +#define AT91_WDT_MR (AT91_WDT+0x04) > > +#define AT91_WDT_SR (AT91_WDT+0x08) > > + > > +void hw_watchdog_reset(void) > > +{ > > + at91_sys_write(AT91_WDT_CR, 0xa5000001); > ^^^^ > please use macro you can import them > from Linux Is this kind of watchdog supported in Linux already? When I submitted this file it was not yet. All the best, S.