Skip to contentSkip to conversation

arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

PATCH New Tetsuyuki Kobayashi 5 participants 46 messages Jun 26, 2012 – Oct 5, 2012

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

PATCH 1/1 arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

This patch depends on
Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board Tetsuyuki Kobayashi's arm: rmobile: kzm9g: Modify sdram area

Adjust hardware setting in lowlevel_init.S.
After this patch U-boot can boot Linux kernel (without DTB) on KZM-A9-GT board successfully.

---
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    1 +
 board/kmc/kzm/lowlevel_init.S              |    3 +++
 2 files changed, 4 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +1 -0
index 07824ab..bb66d20 100644
@@ -191,6 +191,7 @@
 #define	SMSTPCR3	(CPG_BASE + 0x013C)
 #define	SMSTPCR4	(CPG_BASE + 0x0140)
 #define	SMSTPCR5	(CPG_BASE + 0x0144)
+#define	CPGXXCR4	(CPG_BASE + 0x0150)
 #define	SRCR0	(CPG_BASE + 0x80A0)
 #define	SRCR1	(CPG_BASE + 0x80A8)
 #define	SRCR2	(CPG_BASE + 0x80B0)
board/kmc/kzm/lowlevel_init.S +3 -0
index 5221611..be3d203 100644
@@ -111,6 +111,7 @@ loop0:
 
 	and_write32	LIFEC_SEC_SRC, 0xFFFFFFE7
 
+	and_write32	SMSTPCR3,0xFFFF7FFF
 	and_write32	SRCR3, 0xFFFF7FFF
 	and_write32	SMSTPCR2,0xFFFBFFFF
 	and_write32	SRCR2, 0xFFFBFFFF
@@ -302,6 +303,8 @@ loop0:
 	write32		FRQCRD, 0x00000B0B
 	cmp_loop	FRQCRD, 0x80000000, 0x00000000
 
+	write32 	CPGXXCR4, 0xfffffffc
+
 	bx      lr
 
 	.pool
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

Hi Tetsuyuki,

Quoted 3 lines · Tetsuyuki Kobayashi

This patch depends on
Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board Tetsuyuki Kobayashi's arm: rmobile: kzm9g: Modify sdram area

Seems like a series to me -- you should post it as such, with patches numbered 1/N, 2/N etc. Should be easy as you probably already have them as a series of commits above master; git format-patch should generate the mails alright.

Amicalement,

Signature · 1 line
Albert.
#2 lore raw

PATCH 1/1 arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

Hi Albert

Quoted 11 lines · Albert ARIBAUD
Quoted 3 lines · Tetsuyuki Kobayashi

This patch depends on
Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board Tetsuyuki Kobayashi's arm: rmobile: kzm9g: Modify sdram area

Seems like a series to me -- you should post it as such, with patches numbered 1/N, 2/N etc. Should be easy as you probably already have them as a series of commits above master; git format-patch should generate the mails alright.

OK. I am studying git format-patch and git send-email.

#3 lore raw

PATCH 1/1 arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S

In reply to Tetsuyuki Kobayashi

Hi,

I modified my rmobile git tree. Please rebase your local repository and resend this patch.
Best regards,
Nobuhiro

2012/6/26 Tetsuyuki Kobayashi <[email protected]>:

Quoted 54 lines

This patch depends on
Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board Tetsuyuki Kobayashi's arm: rmobile: kzm9g: Modify sdram area

Adjust hardware setting in lowlevel_init.S.
After this patch U-boot can boot Linux kernel (without DTB) on KZM-A9-GT board successfully.

---
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    1 +
 board/kmc/kzm/lowlevel_init.S              |    3 +++
 2 files changed, 4 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +1 -0
index 07824ab..bb66d20 100644
@@ -191,6 +191,7 @@
 #define        SMSTPCR3        (CPG_BASE + 0x013C)
 #define        SMSTPCR4        (CPG_BASE + 0x0140)
 #define        SMSTPCR5        (CPG_BASE + 0x0144)
+#define        CPGXXCR4        (CPG_BASE + 0x0150)
 #define        SRCR0   (CPG_BASE + 0x80A0)
 #define        SRCR1   (CPG_BASE + 0x80A8)
 #define        SRCR2   (CPG_BASE + 0x80B0)
board/kmc/kzm/lowlevel_init.S +3 -1
index 5221611..be3d203 100644
@@ -111,6 +111,7 @@ loop0:
 
        and_write32     LIFEC_SEC_SRC, 0xFFFFFFE7
 
+       and_write32     SMSTPCR3,0xFFFF7FFF
        and_write32     SRCR3, 0xFFFF7FFF
        and_write32     SMSTPCR2,0xFFFBFFFF
        and_write32     SRCR2, 0xFFFBFFFF
@@ -302,6 +303,8 @@ loop0:
        write32         FRQCRD, 0x00000B0B
        cmp_loop        FRQCRD, 0x80000000, 0x00000000
 
+       write32         CPGXXCR4, 0xfffffffc
+
        bx      lr
 
        .pool
--

1.7.9.5

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Signature · 1 line
Nobuhiro Iwamatsu
#4 lore raw

cover arm: rmobile: kzm9g: enable booting Linux kernel

Hello, Iwamatu-san

I rebased u-boot-sh.git arm/rmobile branch and reworked my patches. After this patch set, LTSI kernel can boot on KZM-A9-GT board.

But I found it is not stable. It needs more work.

Tetsuyuki Kobayashi (3):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 include/configs/kzm9g.h                    |    7 ++++---
 3 files changed, 9 insertions(+), 4 deletions(-)

-- 1.7.9.5

#5 lore raw

PATCH 1/3 arm: rmobile: kzm9g: Modify sdram area

Reserve first 16MB for RT-CPU (as same as kernel config).

---
 include/configs/kzm9g.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm9g.h +3 -2
index 62ecadc..5e9b417 100644
@@ -97,8 +97,9 @@
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 					 CONFIG_SYS_INIT_RAM_SIZE - \
 					 GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_SDRAM_BASE	KZM_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE	PHYS_SDRAM_SIZE
+#define CONFIG_SDRAM_OFFSET_FOR_RT	(16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE	(KZM_SDRAM_BASE + CONFIG_SDRAM_OFFSET_FOR_RT)
+#define CONFIG_SYS_SDRAM_SIZE	(PHYS_SDRAM_SIZE - CONFIG_SDRAM_OFFSET_FOR_RT)
 #define CONFIG_SYS_LOAD_ADDR	(CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 
 #define CONFIG_SYS_MONITOR_BASE	(KZM_FLASH_BASE)

--
1.7.9.5

#6 lore raw

PATCH 2/3 arm: rmobile: kzm9g: Adjust low level hardware setting

In reply to Tetsuyuki Kobayashi

Adjust low level hardware setting in s_init.

---
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-rmobile/sh73a0.h +3 -1
index 605dd44..ad59be7 100644
@@ -229,7 +229,9 @@ struct sh73a0_sbsc_cpg {
 	volatile u32 smstpcr3;
 	volatile u32 smstpcr4;
 	volatile u32 smstpcr5;
-	volatile u32 dummy11[10]; /* 0x148 .. 0x16c */
+	volatile u32 dummy11[2]; /* 0x148 .. 0x14c */
+	volatile u32 cpgxxcs4;
+	volatile u32 dummy12[7]; /* 0x154 .. 0x16c */
 	volatile u32 dvfscr2;
 	volatile u32 dvfscr3;
 	volatile u32 dvfscr4;
board/kmc/kzm9g/kzm9g.c +2 -0
index dea62d8..ebb2480 100644
@@ -163,6 +163,7 @@ void s_init(void)
 	#define LIFEC_SEC_SRC_BIT	(1 < 15)
 	writel(readl(LIFEC_SEC_SRC) & ~LIFEC_SEC_SRC_BIT, LIFEC_SEC_SRC);
 
+	clrbits_le32(&cpg->smstpcr3, (1 << 15));
 	clrbits_le32(&cpg_srcr->srcr3, (1 << 15));
 	clrbits_le32(&cpg->smstpcr2, (1 << 18));
 	clrbits_le32(&cpg_srcr->srcr2, (1 << 18));
@@ -266,6 +267,7 @@ void s_init(void)
 
 	writel(0x00000b0b, &cpg->frqcrd);
 	cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
+	writel(0xfffffffc, &cpg->cpgxxcs4);
 }
 
 int board_early_init_f(void)

--
1.7.9.5

#7 lore raw

PATCH 3/3 arm: rmobile: kzm9g: change prompt to board specific

In reply to Tetsuyuki Kobayashi

Change U-Boot prompt to board specific one.

---
 include/configs/kzm9g.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/kzm9g.h +1 -1
index 5e9b417..a473bc8 100644
@@ -70,7 +70,7 @@
 
 /* prompt */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT		"> "
+#define CONFIG_SYS_PROMPT		"KZM-A9-GT# "
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256
 #define CONFIG_SYS_MAXARGS		16

--
1.7.9.5

#8 lore raw

cover arm: rmobile: kzm9g: enable booting Linux kernel

In reply to Tetsuyuki Kobayashi

HI,

2012/7/5 Tetsuyuki Kobayashi <[email protected]>:

Quoted 13 lines

Hello, Iwamatu-san

I rebased u-boot-sh.git arm/rmobile branch and reworked my patches. After this patch set, LTSI kernel can boot on KZM-A9-GT board.

But I found it is not stable. It needs more work.

Tetsuyuki Kobayashi (3):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific

Quoted 5 lines
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 include/configs/kzm9g.h                    |    7 ++++---
 3 files changed, 9 insertions(+), 4 deletions(-)

Applied to my rmobile repository. Thanks.
BTW, do you become a maintainer of kzm9g board?
If it becomes a maintainer, please send the patch to MAINTAINERS file.

Best regards,
Nobuhiro

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#9 lore raw

cover arm: rmobile: kzm9g: enable booting Linux kernel

Hi, Iwamatsu-san

Quoted 2 lines · Nobuhiro Iwamatsu

BTW, do you become a maintainer of kzm9g board?
If it becomes a maintainer, please send the patch to MAINTAINERS file.

Thank you. I will send it later.

#10 lore raw

cover arm: rmobile: kzm9g: enable booting Linux kernel

Hi Tetsuyuki,

Quoted 9 lines · Tetsuyuki Kobayashi

Hi, Iwamatsu-san

Quoted 3 lines · Nobuhiro Iwamatsu

BTW, do you become a maintainer of kzm9g board?
If it becomes a maintainer, please send the patch to MAINTAINERS file.

Thank you. I will send it later.

Just in case: I prefer the patch to MAINTAINERS to be in the same series as the rest of the new board support.

Amicalement,

Signature · 1 line
Albert.
#11 lore raw

cover arm: rmobile: kzm9g: enable booting Linux kernel

Hi Albert,

Quoted 8 lines · Albert ARIBAUD

Hi Tetsuyuki,

Quoted 4 lines · Tetsuyuki Kobayashi

Hi, Iwamatsu-san

(2012/07/06 9:12), Nobuhiro Iwamatsu wrote:

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

BTW, do you become a maintainer of kzm9g board?
If it becomes a maintainer, please send the patch to MAINTAINERS file.

Thank you. I will send it later.

Just in case: I prefer the patch to MAINTAINERS to be in the same series as the rest of the new board support.

OK.

Iwamatsu-san,
Now I have another patch for kzm9g.
So I will make updated patch series including 5 patches. (previous 3 patches + MAINTAINERS + new patch)

#12 lore raw

v2 cover arm: rmobile: kzm9g: enable booting Linux kernel

Hi, Iwamatsu-san

I made v2 patch set for kzm9g.
Please revert my previous 3 patches and apply this patch set.

After this patch set, LTSI kernel can boot on KZM-A9-GT board. It seems stable as before.

Tetsuyuki Kobayashi (5):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific
arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

 MAINTAINERS                                |    1 +
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    6 +++++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 include/configs/kzm9g.h                    |    7 ++++---
 4 files changed, 12 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.9.5 
#13 lore raw

PATCH v2 1/5 arm: rmobile: kzm9g: Modify sdram area

Reserve first 16MB for RT-CPU (as same as kernel config).

---
Changes for v2:
- No change. Just rebased.

 include/configs/kzm9g.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm9g.h +3 -2
index 7567d46..bcf2cd8 100644
@@ -97,8 +97,9 @@
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 					 CONFIG_SYS_INIT_RAM_SIZE - \
 					 GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_SDRAM_BASE	KZM_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE	PHYS_SDRAM_SIZE
+#define CONFIG_SDRAM_OFFSET_FOR_RT	(16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE	(KZM_SDRAM_BASE + CONFIG_SDRAM_OFFSET_FOR_RT)
+#define CONFIG_SYS_SDRAM_SIZE	(PHYS_SDRAM_SIZE - CONFIG_SDRAM_OFFSET_FOR_RT)
 #define CONFIG_SYS_LOAD_ADDR	(CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 
 #define CONFIG_SYS_MONITOR_BASE	(KZM_FLASH_BASE)
Signature · 1 line
1.7.9.5 
#14 lore raw

PATCH v2 2/5 arm: rmobile: kzm9g: Adjust low level hardware setting

In reply to Tetsuyuki Kobayashi

Adjust low level hardware setting in s_init.

---
Changes for v2:
- No change. Just rebased.

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-rmobile/sh73a0.h +3 -1
index 605dd44..ad59be7 100644
@@ -229,7 +229,9 @@ struct sh73a0_sbsc_cpg {
 	volatile u32 smstpcr3;
 	volatile u32 smstpcr4;
 	volatile u32 smstpcr5;
-	volatile u32 dummy11[10]; /* 0x148 .. 0x16c */
+	volatile u32 dummy11[2]; /* 0x148 .. 0x14c */
+	volatile u32 cpgxxcs4;
+	volatile u32 dummy12[7]; /* 0x154 .. 0x16c */
 	volatile u32 dvfscr2;
 	volatile u32 dvfscr3;
 	volatile u32 dvfscr4;
board/kmc/kzm9g/kzm9g.c +2 -0
index 8d7c61a..3716483 100644
@@ -163,6 +163,7 @@ void s_init(void)
 	#define LIFEC_SEC_SRC_BIT	(1 << 15)
 	writel(readl(LIFEC_SEC_SRC) & ~LIFEC_SEC_SRC_BIT, LIFEC_SEC_SRC);
 
+	clrbits_le32(&cpg->smstpcr3, (1 << 15));
 	clrbits_le32(&cpg_srcr->srcr3, (1 << 15));
 	clrbits_le32(&cpg->smstpcr2, (1 << 18));
 	clrbits_le32(&cpg_srcr->srcr2, (1 << 18));
@@ -266,6 +267,7 @@ void s_init(void)
 
 	writel(0x00000b0b, &cpg->frqcrd);
 	cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
+	writel(0xfffffffc, &cpg->cpgxxcs4);
 }
 
 int board_early_init_f(void)
Signature · 1 line
1.7.9.5 
#15 lore raw

PATCH v2 3/5 arm: rmobile: kzm9g: change prompt to board specific

In reply to Tetsuyuki Kobayashi

Change U-Boot prompt to board specific one.

---
Changes for v2:
- No change. Just rebased.

 include/configs/kzm9g.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/kzm9g.h +1 -1
index bcf2cd8..bd157d9 100644
@@ -70,7 +70,7 @@
 
 /* prompt */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT		"> "
+#define CONFIG_SYS_PROMPT		"KZM-A9-GT# "
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256
 #define CONFIG_SYS_MAXARGS		16
Signature · 1 line
1.7.9.5 
#16 lore raw

PATCH v2 4/5 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

In reply to Tetsuyuki Kobayashi

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

---
Changes for v2:
- New

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -0
index ad59be7..74d1c48 100644
@@ -60,7 +60,9 @@
 /* RWDT */
 struct sh73a0_rwdt {
 	volatile u16 rwtcnt0;	/* 0x00 */
+	volatile u16 dummy0;	/* 0x02 */
 	volatile u16 rwtcsra0;	/* 0x04 */
+	volatile u16 dummy1;	/* 0x06 */
 	volatile u16 rwtcsrb0;	/* 0x08 */
 };
 
Signature · 1 line
1.7.9.5 
#17 lore raw

PATCH v2 5/5 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

In reply to Tetsuyuki Kobayashi

Add Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file.

---
Changes for v2:
- New

 MAINTAINERS |    1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 45446f4..55a6c1b 100644
@@ -947,6 +947,7 @@ Vladimir Zapolskiy <[email protected]>
 	devkit3250	lpc32xx
 
 Nobuhiro Iwamatsu <[email protected]>
+Tetsuyuki Kobayashi <[email protected]>
 
 	kzm9g	SH73A0 (RMOBILE SoC)
 
Signature · 1 line
1.7.9.5 
#18 lore raw

v2 cover arm: rmobile: kzm9g: enable booting Linux kernel

In reply to Tetsuyuki Kobayashi

Hi, Iwamatsu-san

I found another bug and fixed it right now.
I will add another patch in this patch series.
I will post v3 soon. Please wait to apply v2.

Quoted 21 lines · Tetsuyuki Kobayashi

Hi, Iwamatsu-san

I made v2 patch set for kzm9g.
Please revert my previous 3 patches and apply this patch set.

After this patch set, LTSI kernel can boot on KZM-A9-GT board. It seems stable as before.

Tetsuyuki Kobayashi (5):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific
arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

  MAINTAINERS                                |    1 +
  arch/arm/include/asm/arch-rmobile/sh73a0.h |    6 +++++-
  board/kmc/kzm9g/kzm9g.c                    |    2 ++
  include/configs/kzm9g.h                    |    7 ++++---
  4 files changed, 12 insertions(+), 4 deletions(-)
#19 lore raw

v3 cover arm: rmobile: kzm9g: enable booting Linux kernel

From: Tetsuyuki Kobayashi <[email protected]>

Hi, Iwamatsu-san

This is v3 patch set for kzm9g.
I add a patch for modifying bus controller setting for CS4.

After this patch set, LTSI kernel can boot on KZM-A9-GT board. It seems stable as before.

Tetsuyuki Kobayashi (6):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific
arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
arm: rmobile: kzm9g: Modify bus controller setting for CS4

 MAINTAINERS                                |    1 +
 arch/arm/include/asm/arch-rmobile/sh73a0.h |    6 +++++-
 board/kmc/kzm9g/kzm9g.c                    |    6 ++++--
 include/configs/kzm9g.h                    |    7 ++++---
 4 files changed, 14 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.9.5
#20 lore raw

PATCH v3 1/6 arm: rmobile: kzm9g: Modify sdram area

From: Tetsuyuki Kobayashi <[email protected]>

Reserve first 16MB for RT-CPU (as same as kernel config).

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.

 include/configs/kzm9g.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm9g.h +3 -2
index 7567d46..bcf2cd8 100644
@@ -97,8 +97,9 @@
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 					 CONFIG_SYS_INIT_RAM_SIZE - \
 					 GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_SDRAM_BASE	KZM_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE	PHYS_SDRAM_SIZE
+#define CONFIG_SDRAM_OFFSET_FOR_RT	(16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE	(KZM_SDRAM_BASE + CONFIG_SDRAM_OFFSET_FOR_RT)
+#define CONFIG_SYS_SDRAM_SIZE	(PHYS_SDRAM_SIZE - CONFIG_SDRAM_OFFSET_FOR_RT)
 #define CONFIG_SYS_LOAD_ADDR	(CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 
 #define CONFIG_SYS_MONITOR_BASE	(KZM_FLASH_BASE)
Signature · 1 line
1.7.9.5
#21 lore raw

PATCH v3 2/6 arm: rmobile: kzm9g: Adjust low level hardware setting

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Adjust low level hardware setting in s_init.

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-rmobile/sh73a0.h +3 -1
index 605dd44..ad59be7 100644
@@ -229,7 +229,9 @@ struct sh73a0_sbsc_cpg {
 	volatile u32 smstpcr3;
 	volatile u32 smstpcr4;
 	volatile u32 smstpcr5;
-	volatile u32 dummy11[10]; /* 0x148 .. 0x16c */
+	volatile u32 dummy11[2]; /* 0x148 .. 0x14c */
+	volatile u32 cpgxxcs4;
+	volatile u32 dummy12[7]; /* 0x154 .. 0x16c */
 	volatile u32 dvfscr2;
 	volatile u32 dvfscr3;
 	volatile u32 dvfscr4;
board/kmc/kzm9g/kzm9g.c +2 -0
index 8d7c61a..3716483 100644
@@ -163,6 +163,7 @@ void s_init(void)
 	#define LIFEC_SEC_SRC_BIT	(1 << 15)
 	writel(readl(LIFEC_SEC_SRC) & ~LIFEC_SEC_SRC_BIT, LIFEC_SEC_SRC);
 
+	clrbits_le32(&cpg->smstpcr3, (1 << 15));
 	clrbits_le32(&cpg_srcr->srcr3, (1 << 15));
 	clrbits_le32(&cpg->smstpcr2, (1 << 18));
 	clrbits_le32(&cpg_srcr->srcr2, (1 << 18));
@@ -266,6 +267,7 @@ void s_init(void)
 
 	writel(0x00000b0b, &cpg->frqcrd);
 	cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
+	writel(0xfffffffc, &cpg->cpgxxcs4);
 }
 
 int board_early_init_f(void)
Signature · 1 line
1.7.9.5
#22 lore raw

PATCH v3 3/6 arm: rmobile: kzm9g: change prompt to board specific

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Change U-Boot prompt to board specific one.

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.

 include/configs/kzm9g.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/kzm9g.h +1 -1
index bcf2cd8..bd157d9 100644
@@ -70,7 +70,7 @@
 
 /* prompt */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT		"> "
+#define CONFIG_SYS_PROMPT		"KZM-A9-GT# "
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256
 #define CONFIG_SYS_MAXARGS		16
Signature · 1 line
1.7.9.5
#23 lore raw

PATCH v3 4/6 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

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

---
Changes for v2:
- New
Changes for v3:
- No change

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -0
index ad59be7..74d1c48 100644
@@ -60,7 +60,9 @@
 /* RWDT */
 struct sh73a0_rwdt {
 	volatile u16 rwtcnt0;	/* 0x00 */
+	volatile u16 dummy0;	/* 0x02 */
 	volatile u16 rwtcsra0;	/* 0x04 */
+	volatile u16 dummy1;	/* 0x06 */
 	volatile u16 rwtcsrb0;	/* 0x08 */
 };
 
Signature · 1 line
1.7.9.5
#24 lore raw

PATCH v3 5/6 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Add Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file.

---
Changes for v2:
- New
Changes for v3:
- No change

 MAINTAINERS |    1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 45446f4..55a6c1b 100644
@@ -947,6 +947,7 @@ Vladimir Zapolskiy <[email protected]>
 	devkit3250	lpc32xx
 
 Nobuhiro Iwamatsu <[email protected]>
+Tetsuyuki Kobayashi <[email protected]>
 
 	kzm9g	SH73A0 (RMOBILE SoC)
 
Signature · 1 line
1.7.9.5
#25 lore raw

PATCH v3 6/6 arm: rmobile: kzm9g: Modify bus controller setting for CS4

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

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 11.
It inserts 4 idle cycles between Write-Read/Write-Write cycles. Modify CS4WCR bit[18:16] (WW[2:0]) from 101 to 111
It specifies the number of cycles necessary for write access.

---
Changes for v3:
- New

 board/kmc/kzm9g/kzm9g.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
board/kmc/kzm9g/kzm9g.c +2 -2
index 3716483..8cefbef 100644
@@ -31,9 +31,9 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #define CS0BCR_D (0x06C00400)
-#define CS4BCR_D (0x06C00400)
+#define CS4BCR_D (0x36C00400)
 #define CS0WCR_D (0x55062C42)
-#define CS4WCR_D (0x19051443)
+#define CS4WCR_D (0x19071443)
 #define CMNCR_BROMMD0   (1 << 21)
 #define CMNCR_BROMMD1   (1 << 22)
 #define CMNCR_BROMMD	(CMNCR_BROMMD0|CMNCR_BROMMD1)
Signature · 1 line
1.7.9.5
#26 lore raw

v4 cover arm: rmobile: kzm9g: enable booting Linux kernel

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Hi, Iwamatsu-san

This is v4 patch set for kzm9g.
I modified bus controller setting for CS4.
And enabled reset command.

Tetsuyuki Kobayashi (7):
arm: rmobile: kzm9g: Modify sdram area
arm: rmobile: kzm9g: Adjust low level hardware setting
arm: rmobile: kzm9g: change prompt to board specific
arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
arm: rmobile: kzm9g: Modify bus controller setting for CS4
arm: rmobile: kzm9g: enable reset command

 MAINTAINERS                                |    1 +
 arch/arm/include/asm/arch-rmobile/sh73a0.h |   10 +++++++++-
 board/kmc/kzm9g/kzm9g.c                    |    9 +++++++--
 include/configs/kzm9g.h                    |    7 ++++---
 4 files changed, 21 insertions(+), 6 deletions(-)
Signature · 1 line
1.7.9.5
#27 lore raw

PATCH v4 1/7 arm: rmobile: kzm9g: Modify sdram area

From: Tetsuyuki Kobayashi <[email protected]>

Reserve first 16MB for RT-CPU (as same as kernel config).

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.
Changes for v4:
- No change.

 include/configs/kzm9g.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm9g.h +3 -2
index 7567d46..bcf2cd8 100644
@@ -97,8 +97,9 @@
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 					 CONFIG_SYS_INIT_RAM_SIZE - \
 					 GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_SDRAM_BASE	KZM_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE	PHYS_SDRAM_SIZE
+#define CONFIG_SDRAM_OFFSET_FOR_RT	(16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE	(KZM_SDRAM_BASE + CONFIG_SDRAM_OFFSET_FOR_RT)
+#define CONFIG_SYS_SDRAM_SIZE	(PHYS_SDRAM_SIZE - CONFIG_SDRAM_OFFSET_FOR_RT)
 #define CONFIG_SYS_LOAD_ADDR	(CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 
 #define CONFIG_SYS_MONITOR_BASE	(KZM_FLASH_BASE)
Signature · 1 line
1.7.9.5
#28 lore raw

PATCH v4 1/7 arm: rmobile: kzm9g: Modify sdram area

Applied to my arm/rmobile branch.

Thanks,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 36 lines

From: Tetsuyuki Kobayashi <[email protected]>

Reserve first 16MB for RT-CPU (as same as kernel config).

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.
Changes for v4:
- No change.

 include/configs/kzm9g.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm9g.h +3 -3
index 7567d46..bcf2cd8 100644
@@ -97,8 +97,9 @@
 #define CONFIG_SYS_INIT_SP_ADDR                (CONFIG_SYS_INIT_RAM_ADDR + \
                                         CONFIG_SYS_INIT_RAM_SIZE - \
                                         GENERATED_GBL_DATA_SIZE)
-#define CONFIG_SYS_SDRAM_BASE  KZM_SDRAM_BASE
-#define CONFIG_SYS_SDRAM_SIZE  PHYS_SDRAM_SIZE
+#define CONFIG_SDRAM_OFFSET_FOR_RT     (16 * 1024 * 1024)
+#define CONFIG_SYS_SDRAM_BASE  (KZM_SDRAM_BASE + CONFIG_SDRAM_OFFSET_FOR_RT)
+#define CONFIG_SYS_SDRAM_SIZE  (PHYS_SDRAM_SIZE - CONFIG_SDRAM_OFFSET_FOR_RT)
 #define CONFIG_SYS_LOAD_ADDR   (CONFIG_SYS_SDRAM_BASE + 32 * 1024 * 1024)
 
 #define CONFIG_SYS_MONITOR_BASE        (KZM_FLASH_BASE)
--

1.7.9.5

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#29 lore raw

PATCH v4 2/7 arm: rmobile: kzm9g: Adjust low level hardware setting

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Adjust low level hardware setting in s_init.

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.
Changes for v4:
- No change.

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 +++-
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)
arch/arm/include/asm/arch-rmobile/sh73a0.h +3 -1
index 605dd44..ad59be7 100644
@@ -229,7 +229,9 @@ struct sh73a0_sbsc_cpg {
 	volatile u32 smstpcr3;
 	volatile u32 smstpcr4;
 	volatile u32 smstpcr5;
-	volatile u32 dummy11[10]; /* 0x148 .. 0x16c */
+	volatile u32 dummy11[2]; /* 0x148 .. 0x14c */
+	volatile u32 cpgxxcs4;
+	volatile u32 dummy12[7]; /* 0x154 .. 0x16c */
 	volatile u32 dvfscr2;
 	volatile u32 dvfscr3;
 	volatile u32 dvfscr4;
board/kmc/kzm9g/kzm9g.c +2 -0
index 8d7c61a..3716483 100644
@@ -163,6 +163,7 @@ void s_init(void)
 	#define LIFEC_SEC_SRC_BIT	(1 << 15)
 	writel(readl(LIFEC_SEC_SRC) & ~LIFEC_SEC_SRC_BIT, LIFEC_SEC_SRC);
 
+	clrbits_le32(&cpg->smstpcr3, (1 << 15));
 	clrbits_le32(&cpg_srcr->srcr3, (1 << 15));
 	clrbits_le32(&cpg->smstpcr2, (1 << 18));
 	clrbits_le32(&cpg_srcr->srcr2, (1 << 18));
@@ -266,6 +267,7 @@ void s_init(void)
 
 	writel(0x00000b0b, &cpg->frqcrd);
 	cmp_loop(&cpg->frqcrd, 0x80000000, 0x0);
+	writel(0xfffffffc, &cpg->cpgxxcs4);
 }
 
 int board_early_init_f(void)
Signature · 1 line
1.7.9.5
#30 lore raw

PATCH v4 3/7 arm: rmobile: kzm9g: change prompt to board specific

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Change U-Boot prompt to board specific one.

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.
Changes for v4:
- No change.

 include/configs/kzm9g.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/kzm9g.h +1 -1
index bcf2cd8..bd157d9 100644
@@ -70,7 +70,7 @@
 
 /* prompt */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT		"> "
+#define CONFIG_SYS_PROMPT		"KZM-A9-GT# "
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256
 #define CONFIG_SYS_MAXARGS		16
Signature · 1 line
1.7.9.5
#31 lore raw

PATCH v4 3/7 arm: rmobile: kzm9g: change prompt to board specific

Applied to my arm/rmobile branch.

Thanks,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 33 lines

From: Tetsuyuki Kobayashi <[email protected]>

Change U-Boot prompt to board specific one.

---
Changes for v2:
- No change. Just rebased.
Changes for v3:
- No change.
Changes for v4:
- No change.

 include/configs/kzm9g.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/kzm9g.h +1 -2
index bcf2cd8..bd157d9 100644
@@ -70,7 +70,7 @@
 
 /* prompt */
 #define CONFIG_SYS_LONGHELP
-#define CONFIG_SYS_PROMPT              "> "
+#define CONFIG_SYS_PROMPT              "KZM-A9-GT# "
 #define CONFIG_SYS_CBSIZE              256
 #define CONFIG_SYS_PBSIZE              256
 #define CONFIG_SYS_MAXARGS             16
--

1.7.9.5

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#32 lore raw

PATCH v4 4/7 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

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

---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -0
index ad59be7..74d1c48 100644
@@ -60,7 +60,9 @@
 /* RWDT */
 struct sh73a0_rwdt {
 	volatile u16 rwtcnt0;	/* 0x00 */
+	volatile u16 dummy0;	/* 0x02 */
 	volatile u16 rwtcsra0;	/* 0x04 */
+	volatile u16 dummy1;	/* 0x06 */
 	volatile u16 rwtcsrb0;	/* 0x08 */
 };
 
Signature · 1 line
1.7.9.5
#33 lore raw

PATCH v4 4/7 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

Hi,

Sorry, I dropped volatile qualifiers from register struct. Please remove volatile qualifiers from your code.

Best regards,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 34 lines

From: Tetsuyuki Kobayashi <[email protected]>

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

---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    2 ++
 1 file changed, 2 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -1
index ad59be7..74d1c48 100644
@@ -60,7 +60,9 @@
 /* RWDT */
 struct sh73a0_rwdt {
        volatile u16 rwtcnt0;   /* 0x00 */
+       volatile u16 dummy0;    /* 0x02 */
        volatile u16 rwtcsra0;  /* 0x04 */
+       volatile u16 dummy1;    /* 0x06 */
        volatile u16 rwtcsrb0;  /* 0x08 */
 };
 
--

1.7.9.5

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#34 lore raw

PATCH v5 1/1 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

From: Tetsuyuki Kobayashi <[email protected]>

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

---
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(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -0
index 2c0c8c6..39ed2c3 100644
@@ -64,7 +64,9 @@
 /* RWDT */
 struct sh73a0_rwdt {
 	u16 rwtcnt0;	/* 0x00 */
+	u16 dummy0;	/* 0x02 */
 	u16 rwtcsra0;	/* 0x04 */
+	u16 dummy1;	/* 0x06 */
 	u16 rwtcsrb0;	/* 0x08 */
 };
 
Signature · 1 line
1.7.9.5
#35 lore raw

PATCH v5 1/1 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt

Thank you .
I applied my rmobile branch.

Best regarads,
Nobuhiro

2012/7/20 Tetsuyuki Kobayshi <[email protected]>:

Quoted 36 lines

From: Tetsuyuki Kobayashi <[email protected]>

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

---
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(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +2 -1
index 2c0c8c6..39ed2c3 100644
@@ -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

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#36 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change

 MAINTAINERS |    1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
index 45446f4..55a6c1b 100644
@@ -947,6 +947,7 @@ Vladimir Zapolskiy <[email protected]>
 	devkit3250	lpc32xx
 
 Nobuhiro Iwamatsu <[email protected]>
+Tetsuyuki Kobayashi <[email protected]>
 
 	kzm9g	SH73A0 (RMOBILE SoC)
 
Signature · 1 line
1.7.9.5
#37 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

Applied to my arm/rmobile branch.
Thank you.

Best regards,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 30 lines

From: Tetsuyuki Kobayashi <[email protected]>

---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change

 MAINTAINERS |    1 +
 1 file changed, 1 insertion(+)
MAINTAINERS +1 -1
index 45446f4..55a6c1b 100644
@@ -947,6 +947,7 @@ Vladimir Zapolskiy <[email protected]>
        devkit3250      lpc32xx
 
 Nobuhiro Iwamatsu <[email protected]>
+Tetsuyuki Kobayashi <[email protected]>
 
        kzm9g   SH73A0 (RMOBILE SoC)
 
--

1.7.9.5

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#38 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

Hi Nohiburo, Tetsuyuki,

Quoted 5 lines · Nobuhiro Iwamatsu

Applied to my arm/rmobile branch.
Thank you.

Best regards,
Nobuhiro

Actually this did does not seem to have been applied to arm/rmobile, and was not in my patchwork todo either. Should I apply the patch directly in arm/master?

Amicalement,

Signature · 1 line
Albert.
#39 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

HI,

Quoted 8 lines · Albert ARIBAUD

Hi Nohiburo, Tetsuyuki,

Quoted 3 lines · Nobuhiro Iwamatsu

Applied to my arm/rmobile branch.
Thank you.

Quoted 7 lines
Quoted 2 lines

Best regards,
Nobuhiro

Actually this did does not seem to have been applied to arm/rmobile, and was not in my patchwork todo either. Should I apply the patch directly in arm/master?

Yes, please apply to your repository.
Thanks!

Nobuhiro

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#40 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

Hi Nobuhiro,

Quoted 15 lines · Nobuhiro Iwamatsu

HI,

Quoted 11 lines · Albert ARIBAUD

Hi Nohiburo, Tetsuyuki,

Quoted 5 lines · Nobuhiro Iwamatsu

Applied to my arm/rmobile branch.
Thank you.

Best regards,
Nobuhiro

Quoted 6 lines
Quoted 4 lines

Actually this did does not seem to have been applied to arm/rmobile, and was not in my patchwork todo either. Should I apply the patch directly in arm/master?

Yes, please apply to your repository.
Thanks!

Unless Tom makes an exception, I'm afraid this will have to wait until after 2012.10.

Quoted 1 line

Nobuhiro

Amicalement,

Signature · 1 line
Albert.
#41 lore raw

PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 18 lines · Albert ARIBAUD

Hi Nobuhiro,

Quoted 13 lines · Nobuhiro Iwamatsu

HI,

Quoted 9 lines · Albert ARIBAUD

Hi Nohiburo, Tetsuyuki,

Quoted 3 lines · Nobuhiro Iwamatsu

Applied to my arm/rmobile branch. Thank you.

Best regards, Nobuhiro

Quoted 8 lines
Quoted 5 lines
Quoted 4 lines

Actually this did does not seem to have been applied to arm/rmobile, and was not in my patchwork todo either. Should I apply the patch directly in arm/master?

Yes, please apply to your repository. Thanks!

Unless Tom makes an exception, I'm afraid this will have to wait until after 2012.10.

Just patching MAINTAINERS file? That's fine with me.

- --
Tom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iQIcBAEBAgAGBQJQbyumAAoJENk4IS6UOR1WpfwP+QEIXaBV/Wc3zigRHgIsHGHZ 6fuhpZZiWJXXb9spR4j+CuiX104CdMJ5xvI/0vqEO4se2L98R3rRSopqSyoFg92d UCie0vyeQ52Px4VfJPUh14jMqCgjZT5HjcTmuzgxQdb43h3JTCTSOwY5syioLCla XlaRrgnpZMCgvRyLp5ncgIfcDdEnjihFyZNUcgpReI3Xdj1tMGCMPxQ96gbKKEX0 jmKdDhBl2j9mf4bwTpVmgh2/21j/qT+4jIB9/Os89KCj5/W99YSBAVl1LXHLtLAh 9p0mzgphByJy7Z7k+sj3LxJ1cOSNFEVZ+/ptjGA3MkI1DsDU2bcjZYy0DBuhGzY5 N0U6qiS2Cc8KPIO1H8VCiEkJHEreA8HCsc+z4eaq0sZo1taeIidI+hmSM60G53K8 0LtBWtH8KRkpf2l+O6dqo98tM4SakTDOBtGWY18YWv8S00rpaSBSo5B+GrS+HCV2 Uqr/msLYSzaqiCaZ98q1DIVx5t/bnPKKhUHnv3U6GVy7IOnqqmgaG45ch/NRAD2A e7rWSP/kE3g2BLZq7ATC8xxWLRhYSD1hvry3Co2eBx3uBYJGcIAZL8p7/XBnfdv/ /wYl5QZm7rH2sidcu9mcNyxkBVssTIvfUiYMK/COZb59LuQnbhjgCKAmk9Utc0Wo G7PbvrF237CCa7kaqfU7
=v8xu
-----END PGP SIGNATURE-----

#42 lore raw

PATCH v4 6/7 arm: rmobile: kzm9g: Modify bus controller setting for CS4

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

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

---
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(-)
board/kmc/kzm9g/kzm9g.c +3 -2
index 3716483..ed530fd 100644
@@ -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)
Signature · 1 line
1.7.9.5
#43 lore raw

PATCH v4 6/7 arm: rmobile: kzm9g: Modify bus controller setting for CS4

Applied to my arm/rmobile branch.
Thank you.

Best regards,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 48 lines

From: Tetsuyuki Kobayashi <[email protected]>

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

---
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(-)
board/kmc/kzm9g/kzm9g.c +3 -3
index 3716483..ed530fd 100644
@@ -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

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
#44 lore raw

PATCH v4 7/7 arm: rmobile: kzm9g: enable reset command

In reply to Tetsuyuki Kobayshi

From: Tetsuyuki Kobayashi <[email protected]>

Do soft power on reset in U-Boot reset command.

---
Changes for v4:
- New

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 ++++
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 6 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +4 -0
index 74d1c48..6a6c237 100644
@@ -41,6 +41,10 @@
 #define SRESCR	(CPG_BASE + 0x1018)
 #define PCLKCR	(CPG_BASE + 0x1020)
 
+/* SYSC */
+#define SYSC_BASE   (0xE6180000)
+#define RESCNT2	(SYSC_BASE + 0x8020)
+
 /* BSC */
 #define BSC_BASE (0xFEC10000)
 
board/kmc/kzm9g/kzm9g.c +2 -0
index ed530fd..66bac69 100644
@@ -372,4 +372,6 @@ int board_eth_init(bd_t *bis)
 
 void reset_cpu(ulong addr)
 {
+	/* Soft Power On Reset */
+	writel((1 << 31), RESCNT2);
 }
Signature · 1 line
1.7.9.5
#45 lore raw

PATCH v4 7/7 arm: rmobile: kzm9g: enable reset command

Applied to my arm/rmobile branch.
Thank you.

Best regards,
Nobuhiro

2012/7/17 Tetsuyuki Kobayshi <[email protected]>:

Quoted 42 lines

From: Tetsuyuki Kobayashi <[email protected]>

Do soft power on reset in U-Boot reset command.

---
Changes for v4:
- New

 arch/arm/include/asm/arch-rmobile/sh73a0.h |    4 ++++
 board/kmc/kzm9g/kzm9g.c                    |    2 ++
 2 files changed, 6 insertions(+)
arch/arm/include/asm/arch-rmobile/sh73a0.h +4 -0
index 74d1c48..6a6c237 100644
@@ -41,6 +41,10 @@
 #define SRESCR (CPG_BASE + 0x1018)
 #define PCLKCR (CPG_BASE + 0x1020)
 
+/* SYSC */
+#define SYSC_BASE   (0xE6180000)
+#define RESCNT2        (SYSC_BASE + 0x8020)
+
 /* BSC */
 #define BSC_BASE (0xFEC10000)
 
board/kmc/kzm9g/kzm9g.c +2 -1
index ed530fd..66bac69 100644
@@ -372,4 +372,6 @@ int board_eth_init(bd_t *bis)
 
 void reset_cpu(ulong addr)
 {
+       /* Soft Power On Reset */
+       writel((1 << 31), RESCNT2);
 }
--

1.7.9.5

Signature · 3 lines
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6