Patchwork [U-Boot,v4,6/7] arm: rmobile: kzm9g: Modify bus controller setting for CS4

login
register
mail settings
Submitter Tetsuyuki Kobayashi
Date July 17, 2012, 5:13 a.m.
Message ID <1342501992-10042-7-git-send-email-koba@kmckk.co.jp>
Download mbox | patch
Permalink /patch/171332/
State Accepted
Delegated to: Albert ARIBAUD
Headers show

Comments

Tetsuyuki Kobayashi - July 17, 2012, 5:13 a.m.
From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>

Problem:
Linux kernel hangs up when it write a file to NFS mounted directory.
Solution:
Modify bus controller setting for CS4, which connected smsc9221 ethernet
controller.

Detail:
Modify CS4BCR bit[29:28] (IWW[1:0]) from 00 to 01.
Modify CS4BCR bit[20:19] (IWRRD[1:0]) from 00 to 01.
Modify CS4BCR bit[17:16] (IWRRS[1:0]) from 00 to 01.
Modify CS4WCR bit[27:26] (WSW[1:0]) from 10 to 11
Modify CS4WCR bit[25:24] (WHW[1:0]) from 01 to 10
Modify CS4WCR bit[18:16] (WW[2:0]) from 101 to 111
Modify CS4WCR bit[13:11] (SW[2:0]) from 010 to 011
Modify CS4WCR bit[10:7] (WR[3:0]) from 1000 to 1011

Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
---
Changes for v3:
 - New
Changes for v4:
 - Modify values for CS4BCR and CS4WCR.

 board/kmc/kzm9g/kzm9g.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Nobuhiro Iwamatsu - July 19, 2012, 11:51 p.m.
Applied to my arm/rmobile branch.
Thank you.

Best regards,
  Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <koba@kmckk.co.jp>:
> From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
>
> Problem:
> Linux kernel hangs up when it write a file to NFS mounted directory.
> Solution:
> Modify bus controller setting for CS4, which connected smsc9221 ethernet
> controller.
>
> Detail:
> Modify CS4BCR bit[29:28] (IWW[1:0]) from 00 to 01.
> Modify CS4BCR bit[20:19] (IWRRD[1:0]) from 00 to 01.
> Modify CS4BCR bit[17:16] (IWRRS[1:0]) from 00 to 01.
> Modify CS4WCR bit[27:26] (WSW[1:0]) from 10 to 11
> Modify CS4WCR bit[25:24] (WHW[1:0]) from 01 to 10
> Modify CS4WCR bit[18:16] (WW[2:0]) from 101 to 111
> Modify CS4WCR bit[13:11] (SW[2:0]) from 010 to 011
> Modify CS4WCR bit[10:7] (WR[3:0]) from 1000 to 1011
>
> Signed-off-by: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
> ---
> Changes for v3:
>  - New
> Changes for v4:
>  - Modify values for CS4BCR and CS4WCR.
>
>  board/kmc/kzm9g/kzm9g.c |    5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
> index 3716483..ed530fd 100644
> --- a/board/kmc/kzm9g/kzm9g.c
> +++ b/board/kmc/kzm9g/kzm9g.c
> @@ -31,9 +31,10 @@
>  DECLARE_GLOBAL_DATA_PTR;
>
>  #define CS0BCR_D (0x06C00400)
> -#define CS4BCR_D (0x06C00400)
> +#define CS4BCR_D (0x16c90400)
>  #define CS0WCR_D (0x55062C42)
> -#define CS4WCR_D (0x19051443)
> +#define CS4WCR_D (0x1e071dc3)
> +
>  #define CMNCR_BROMMD0   (1 << 21)
>  #define CMNCR_BROMMD1   (1 << 22)
>  #define CMNCR_BROMMD   (CMNCR_BROMMD0|CMNCR_BROMMD1)
> --
> 1.7.9.5
>

Patch

diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c
index 3716483..ed530fd 100644
--- a/board/kmc/kzm9g/kzm9g.c
+++ b/board/kmc/kzm9g/kzm9g.c
@@ -31,9 +31,10 @@ 
 DECLARE_GLOBAL_DATA_PTR;
 
 #define CS0BCR_D (0x06C00400)
-#define CS4BCR_D (0x06C00400)
+#define CS4BCR_D (0x16c90400)
 #define CS0WCR_D (0x55062C42)
-#define CS4WCR_D (0x19051443)
+#define CS4WCR_D (0x1e071dc3)
+
 #define CMNCR_BROMMD0   (1 << 21)
 #define CMNCR_BROMMD1   (1 << 22)
 #define CMNCR_BROMMD	(CMNCR_BROMMD0|CMNCR_BROMMD1)