Patchwork [U-Boot,v5] arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

login
register
mail settings
Submitter Tetsuyuki Kobayashi
Date July 20, 2012, 9:27 a.m.
Message ID <1342776476-31484-1-git-send-email-koba@kmckk.co.jp>
Download mbox | patch
Permalink /patch/172188/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Tetsuyuki Kobayashi - July 20, 2012, 9:27 a.m.
From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Add dummy member to struct sh73a0_rwdt in sh73a0.h.
Without this, initializing watch dog timer goes wrong.

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
---
Changes for v2:
 - New
Changes for v3:
 - No change
Changes for v4:
 - No change
Changes for v5:
 - remove volatile

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
 1 file changed, 2 insertions(+)
Nobuhiro Iwamatsu - July 23, 2012, 6:28 a.m.
Thank you .
I applied my rmobile branch.

Best regarads,
  Nobuhiro

2012/7/20 Tetsuyuki Kobayshi <koba@kmckk.co.jp>:
> From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
>
> Add dummy member to struct sh73a0_rwdt in sh73a0.h.
> Without this, initializing watch dog timer goes wrong.
>
> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> ---
> Changes for v2:
>  - New
> Changes for v3:
>  - No change
> Changes for v4:
>  - No change
> Changes for v5:
>  - remove volatile
>
>  arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h
> index 2c0c8c6..39ed2c3 100644
> --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h
> +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h
> @@ -64,7 +64,9 @@
>  /* RWDT */
>  struct sh73a0_rwdt {
>         u16 rwtcnt0;    /* 0x00 */
> +       u16 dummy0;     /* 0x02 */
>         u16 rwtcsra0;   /* 0x04 */
> +       u16 dummy1;     /* 0x06 */
>         u16 rwtcsrb0;   /* 0x08 */
>  };
>
> --
> 1.7.9.5
>

Patch

diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h
index 2c0c8c6..39ed2c3 100644
--- a/arch/arm/include/asm/arch-rmobile/sh73a0.h
+++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h
@@ -64,7 +64,9 @@ 
 /* RWDT */
 struct sh73a0_rwdt {
 	u16 rwtcnt0;	/* 0x00 */
+	u16 dummy0;	/* 0x02 */
 	u16 rwtcsra0;	/* 0x04 */
+	u16 dummy1;	/* 0x06 */
 	u16 rwtcsrb0;	/* 0x08 */
 };