From: Juergen Beisert <jbe@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: [PATCH] Fix watchdog's register size for the i.MX27 CPU
Date: Fri, 24 Sep 2010 15:15:27 +0200 [thread overview]
Message-ID: <201009241515.27635.jbe@pengutronix.de> (raw)
In-Reply-To: <201009241455.13828.jbe@pengutronix.de>
Juergen Beisert wrote:
> commit adbc97930ed1e2259f779732540583cbef810d68
> Author: Juergen Beisert <jbe@pengutronix.de>
> 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 macros.
>
> Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
>
> diff --git a/arch/arm/mach-imx/include/mach/imx27-regs.h
> b/arch/arm/mach-imx/include/mach/imx27-regs.h
> index 8d0bcda..d95379c 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 + 0x04) /* Watchdog Service Register */
> +#define WSTR __REG16(IMX_WDT_BASE + 0x08) /* Watchdog Status Register */
>
> /* important definition of some bits of WCR */
> #define WCR_WDE 0x04
Ups, sorry incomplete. Also the offsets must be changeed. Will resend.
jbe
--
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
next prev parent reply other threads:[~2010-09-24 13:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 12:55 Juergen Beisert
2010-09-24 13:15 ` Juergen Beisert [this message]
2010-09-24 13:22 ` Juergen Beisert
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=201009241515.27635.jbe@pengutronix.de \
--to=jbe@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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