Skip to contentSkip to conversation

Fix watchdog's register size for the i.MX27 CPU

PATCH In review Juergen Beisert 1 participant 3 messages Sep 24, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix watchdog's register size for the i.MX27 CPU

commit adbc97930ed1e2259f779732540583cbef810d68

Author: Juergen Beisert <[email protected]>
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.

(quoted diff) +0 -0

b/arch/arm/mach-imx/include/mach/imx27-regs.h
index 8d0bcda..d95379c 100644

arch/arm/mach-imx/include/mach/imx27-regs.h +3 -3
@@ -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
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 19 lines · Juergen Beisert

commit adbc97930ed1e2259f779732540583cbef810d68

Author: Juergen Beisert <[email protected]>
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.

arch/arm/mach-imx/include/mach/imx27-regs.h +0 -0
index 8d0bcda..d95379c 100644
@@ -83,9 +83,9 @@
 #include "esdctl.h"
 

arch/arm/mach-imx/include/mach/imx27-regs.h line 91

Quoted 10 lines
arch/arm/mach-imx/include/mach/imx27-regs.h +3 -3
 /* 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

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

commit 5bd9c57d575126448c7d325547538a55e5cd81d6

Author: Juergen Beisert <[email protected]>
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.

arch/arm/mach-imx/include/mach/imx27-regs.h +3 -3
index 8d0bcda..f4354ba 100644
@@ -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
Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox