From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1Oz8FX-0000sr-Rd for barebox@lists.infradead.org; Fri, 24 Sep 2010 13:23:40 +0000 Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.71) (envelope-from ) id 1Oz8FW-0001V4-9l for barebox@lists.infradead.org; Fri, 24 Sep 2010 15:23:38 +0200 From: Juergen Beisert Date: Fri, 24 Sep 2010 15:22:15 +0200 References: <201009241455.13828.jbe@pengutronix.de> <201009241515.27635.jbe@pengutronix.de> In-Reply-To: <201009241515.27635.jbe@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201009241522.15613.jbe@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] Fix watchdog's register size for the i.MX27 CPU To: barebox@lists.infradead.org commit 5bd9c57d575126448c7d325547538a55e5cd81d6 Author: Juergen Beisert Date: Fri Sep 24 14:51:42 2010 +0200 Fix watchdog's register size for the i.MX27 CPU The watchdog registers on the i.MX27 CPU are 16 bit registers. This patch just fixes the access macro. Signed-off-by: Juergen Beisert diff --git a/arch/arm/mach-imx/include/mach/imx27-regs.h b/arch/arm/mach-imx/include/mach/imx27-regs.h index 8d0bcda..f4354ba 100644 --- a/arch/arm/mach-imx/include/mach/imx27-regs.h +++ b/arch/arm/mach-imx/include/mach/imx27-regs.h @@ -83,9 +83,9 @@ #include "esdctl.h" /* Watchdog Registers*/ -#define WCR __REG(IMX_WDT_BASE + 0x00) /* Watchdog Control Register */ -#define WSR __REG(IMX_WDT_BASE + 0x04) /* Watchdog Service Register */ -#define WSTR __REG(IMX_WDT_BASE + 0x08) /* Watchdog Status Register */ +#define WCR __REG16(IMX_WDT_BASE + 0x00) /* Watchdog Control Register */ +#define WSR __REG16(IMX_WDT_BASE + 0x02) /* Watchdog Service Register */ +#define WSTR __REG16(IMX_WDT_BASE + 0x04) /* Watchdog Status Register */ /* important definition of some bits of WCR */ #define WCR_WDE 0x04 -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | Phone: +49-8766-939 228 | Vertretung Sued/Muenchen, Germany | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox