[U-Boot] [PATCH] 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.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- arch/arm/include/asm/arch-rmobile/sh73a0.h | 1 + board/kmc/kzm/lowlevel_init.S | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 07824ab..bb66d20 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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) diff --git a/board/kmc/kzm/lowlevel_init.S b/board/kmc/kzm/lowlevel_init.S index 5221611..be3d203 100644 --- a/board/kmc/kzm/lowlevel_init.S +++ b/board/kmc/kzm/lowlevel_init.S @@ -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

Hi Tetsuyuki,
On Tue, 26 Jun 2012 11:30:16 +0900, Tetsuyuki Kobayashi koba@kmckk.co.jp wrote:
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,

Hi Albert
(2012/06/27 6:22), Albert ARIBAUD wrote:
On Tue, 26 Jun 2012 11:30:16 +0900, Tetsuyuki Kobayashi koba@kmckk.co.jp wrote:
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.

Hi,
I modified my rmobile git tree. Please rebase your local repository and resend this patch. Best regards, Nobuhiro
2012/6/26 Tetsuyuki Kobayashi koba@kmckk.co.jp:
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.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp
arch/arm/include/asm/arch-rmobile/sh73a0.h | 1 + board/kmc/kzm/lowlevel_init.S | 3 +++ 2 files changed, 4 insertions(+)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 07824ab..bb66d20 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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) diff --git a/board/kmc/kzm/lowlevel_init.S b/board/kmc/kzm/lowlevel_init.S index 5221611..be3d203 100644 --- a/board/kmc/kzm/lowlevel_init.S +++ b/board/kmc/kzm/lowlevel_init.S @@ -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@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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

Reserve first 16MB for RT-CPU (as same as kernel config).
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- include/configs/kzm9g.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 62ecadc..5e9b417 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

Adjust low level hardware setting in s_init.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- arch/arm/include/asm/arch-rmobile/sh73a0.h | 4 +++- board/kmc/kzm9g/kzm9g.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 605dd44..ad59be7 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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; diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index dea62d8..ebb2480 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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

Change U-Boot prompt to board specific one.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- include/configs/kzm9g.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 5e9b417..a473bc8 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

HI,
2012/7/5 Tetsuyuki Kobayashi koba@kmckk.co.jp:
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(-)
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

Hi, Iwamatsu-san
(2012/07/06 9:12), Nobuhiro Iwamatsu wrote:
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.

Hi Tetsuyuki,
On Fri, 06 Jul 2012 16:48:05 +0900, Tetsuyuki Kobayashi koba@kmckk.co.jp wrote:
Hi, Iwamatsu-san
(2012/07/06 9:12), Nobuhiro Iwamatsu wrote:
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,

Hi Albert,
(2012/07/06 22:46), Albert ARIBAUD wrote:
Hi Tetsuyuki,
On Fri, 06 Jul 2012 16:48:05 +0900, Tetsuyuki Kobayashi koba@kmckk.co.jp wrote:
Hi, Iwamatsu-san
(2012/07/06 9:12), Nobuhiro Iwamatsu wrote:
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)

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(-)

Reserve first 16MB for RT-CPU (as same as kernel config).
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- Changes for v2: - No change. Just rebased.
include/configs/kzm9g.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 7567d46..bcf2cd8 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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)

Adjust low level hardware setting in s_init.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- 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(-)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 605dd44..ad59be7 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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; diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 8d7c61a..3716483 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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)

Change U-Boot prompt to board specific one.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- Changes for v2: - No change. Just rebased.
include/configs/kzm9g.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index bcf2cd8..bd157d9 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

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
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 ad59be7..74d1c48 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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 */ };

Add Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- Changes for v2: - New
MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS index 45446f4..55a6c1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -947,6 +947,7 @@ Vladimir Zapolskiy vz@mleia.com devkit3250 lpc32xx
Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com +Tetsuyuki Kobayashi koba@kmckk.co.jp
kzm9g SH73A0 (RMOBILE SoC)

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.
(2012/07/07 20:23), Tetsuyuki Kobayashi wrote:
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(-)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
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(-)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Reserve first 16MB for RT-CPU (as same as kernel config).
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- Changes for v2: - No change. Just rebased. Changes for v3: - No change.
include/configs/kzm9g.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 7567d46..bcf2cd8 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Adjust low level hardware setting in s_init.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- 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(-)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 605dd44..ad59be7 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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; diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 8d7c61a..3716483 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Change U-Boot prompt to board specific one.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- Changes for v2: - No change. Just rebased. Changes for v3: - No change.
include/configs/kzm9g.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index bcf2cd8..bd157d9 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

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
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 ad59be7..74d1c48 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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 */ };

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Add Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- Changes for v2: - New Changes for v3: - No change
MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS index 45446f4..55a6c1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -947,6 +947,7 @@ Vladimir Zapolskiy vz@mleia.com devkit3250 lpc32xx
Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com +Tetsuyuki Kobayashi koba@kmckk.co.jp
kzm9g SH73A0 (RMOBILE SoC)

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 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.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- Changes for v3: - New
board/kmc/kzm9g/kzm9g.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 3716483..8cefbef 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
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(-)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Reserve first 16MB for RT-CPU (as same as kernel config).
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- 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(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 7567d46..bcf2cd8 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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)

Applied to my arm/rmobile branch.
Thanks, Nobuhiro
2012/7/17 Tetsuyuki Kobayshi koba@kmckk.co.jp:
From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Reserve first 16MB for RT-CPU (as same as kernel config).
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org
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(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index 7567d46..bcf2cd8 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Adjust low level hardware setting in s_init.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- 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(-)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 605dd44..ad59be7 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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; diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index 8d7c61a..3716483 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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)

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Change U-Boot prompt to board specific one.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org --- 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(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index bcf2cd8..bd157d9 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

Applied to my arm/rmobile branch.
Thanks, Nobuhiro
2012/7/17 Tetsuyuki Kobayshi koba@kmckk.co.jp:
From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Change U-Boot prompt to board specific one.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp Signed-off-by: Nobuhiro Iwamatsu iwamatsu@nigauri.org
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(-)
diff --git a/include/configs/kzm9g.h b/include/configs/kzm9g.h index bcf2cd8..bd157d9 100644 --- a/include/configs/kzm9g.h +++ b/include/configs/kzm9g.h @@ -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

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
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 ad59be7..74d1c48 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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 */ };

Hi,
Sorry, I dropped volatile qualifiers from register struct. Please remove volatile qualifiers from your code.
Best regards, Nobuhiro
2012/7/17 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
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 ad59be7..74d1c48 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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

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 */ };

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

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- Changes for v2: - New Changes for v3: - No change Changes for v4: - No change
MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS index 45446f4..55a6c1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -947,6 +947,7 @@ Vladimir Zapolskiy vz@mleia.com devkit3250 lpc32xx
Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com +Tetsuyuki Kobayashi koba@kmckk.co.jp
kzm9g SH73A0 (RMOBILE SoC)

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
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change
MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS index 45446f4..55a6c1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -947,6 +947,7 @@ Vladimir Zapolskiy vz@mleia.com devkit3250 lpc32xx
Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com +Tetsuyuki Kobayashi koba@kmckk.co.jp
kzm9g SH73A0 (RMOBILE SoC)
-- 1.7.9.5

Hi Nohiburo, Tetsuyuki,
On Fri, 20 Jul 2012 08:51:29 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
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,

HI,
On Thu, Oct 4, 2012 at 5:45 PM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Nohiburo, Tetsuyuki,
On Fri, 20 Jul 2012 08:51:29 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
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?
Yes, please apply to your repository. Thanks!
Nobuhiro

Hi Nobuhiro,
On Fri, 5 Oct 2012 07:02:17 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
HI,
On Thu, Oct 4, 2012 at 5:45 PM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Nohiburo, Tetsuyuki,
On Fri, 20 Jul 2012 08:51:29 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
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?
Yes, please apply to your repository. Thanks!
Unless Tom makes an exception, I'm afraid this will have to wait until after 2012.10.
Nobuhiro
Amicalement,

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 10/05/12 11:44, Albert ARIBAUD wrote:
Hi Nobuhiro,
On Fri, 5 Oct 2012 07:02:17 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
HI,
On Thu, Oct 4, 2012 at 5:45 PM, Albert ARIBAUD albert.u.boot@aribaud.net wrote:
Hi Nohiburo, Tetsuyuki,
On Fri, 20 Jul 2012 08:51:29 +0900, Nobuhiro Iwamatsu iwamatsu@nigauri.org wrote:
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?
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

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)

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

From: Tetsuyuki Kobayashi koba@kmckk.co.jp
Do soft power on reset in U-Boot reset command.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp --- Changes for v4: - New
arch/arm/include/asm/arch-rmobile/sh73a0.h | 4 ++++ board/kmc/kzm9g/kzm9g.c | 2 ++ 2 files changed, 6 insertions(+)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 74d1c48..6a6c237 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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)
diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index ed530fd..66bac69 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -372,4 +372,6 @@ int board_eth_init(bd_t *bis)
void reset_cpu(ulong addr) { + /* Soft Power On Reset */ + writel((1 << 31), RESCNT2); }

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
Do soft power on reset in U-Boot reset command.
Signed-off-by: Tetsuyuki Kobayashi koba@kmckk.co.jp
Changes for v4:
- New
arch/arm/include/asm/arch-rmobile/sh73a0.h | 4 ++++ board/kmc/kzm9g/kzm9g.c | 2 ++ 2 files changed, 6 insertions(+)
diff --git a/arch/arm/include/asm/arch-rmobile/sh73a0.h b/arch/arm/include/asm/arch-rmobile/sh73a0.h index 74d1c48..6a6c237 100644 --- a/arch/arm/include/asm/arch-rmobile/sh73a0.h +++ b/arch/arm/include/asm/arch-rmobile/sh73a0.h @@ -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)
diff --git a/board/kmc/kzm9g/kzm9g.c b/board/kmc/kzm9g/kzm9g.c index ed530fd..66bac69 100644 --- a/board/kmc/kzm9g/kzm9g.c +++ b/board/kmc/kzm9g/kzm9g.c @@ -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
participants (6)
-
Albert ARIBAUD
-
Nobuhiro Iwamatsu
-
Nobuhiro Iwamatsu
-
Tetsuyuki Kobayashi
-
Tetsuyuki Kobayshi
-
Tom Rini