arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S
Subsystems (2)
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
@@ -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
@@ -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
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.
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 areaSeems 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.
PATCH 1/1 arm: rmobile: kzm9g: Adjust hardware setting in lowlevel_init.S
In reply to Tetsuyuki KobayashiHi,
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 areaAdjust 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 <[email protected]>--- 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@@ -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@@ -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
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
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
@@ -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
PATCH 2/3 arm: rmobile: kzm9g: Adjust low level hardware setting
In reply to Tetsuyuki KobayashiAdjust 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
@@ -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
@@ -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
PATCH 3/3 arm: rmobile: kzm9g: change prompt to board specific
In reply to Tetsuyuki KobayashiChange 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
@@ -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
Nobuhiro Iwamatsu
Appliedcover arm: rmobile: kzm9g: enable booting Linux kernel
In reply to Tetsuyuki KobayashiHI,
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: 40AD1FA6cover 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 toMAINTAINERSfile.
Thank you. I will send it later.
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 toMAINTAINERSfile.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.
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 toMAINTAINERSfile.Thank you. I will send it later.
Just in case: I prefer the patch to
MAINTAINERSto 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)
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
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
@@ -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
PATCH v2 2/5 arm: rmobile: kzm9g: Adjust low level hardware setting
In reply to Tetsuyuki KobayashiAdjust 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
@@ -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
@@ -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
PATCH v2 3/5 arm: rmobile: kzm9g: change prompt to board specific
In reply to Tetsuyuki KobayashiChange 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
@@ -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
PATCH v2 4/5 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
In reply to Tetsuyuki KobayashiAdd 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
@@ -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
PATCH v2 5/5 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
In reply to Tetsuyuki KobayashiAdd Tetsuyuki Kobayshi for kzm9g in MAINTAINERS file.
---
Changes for v2:
- New
MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -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
v2 cover arm: rmobile: kzm9g: enable booting Linux kernel
In reply to Tetsuyuki KobayashiHi, 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 structsh73a0_rwdt
MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9gMAINTAINERS | 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(-)
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
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
@@ -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
PATCH v3 2/6 arm: rmobile: kzm9g: Adjust low level hardware setting
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
@@ -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
PATCH v3 3/6 arm: rmobile: kzm9g: change prompt to board specific
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
PATCH v3 4/6 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
PATCH v3 5/6 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
PATCH v3 6/6 arm: rmobile: kzm9g: Modify bus controller setting for CS4
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
v4 cover arm: rmobile: kzm9g: enable booting Linux kernel
In reply to Tetsuyuki KobayshiFrom: 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
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
@@ -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
Nobuhiro Iwamatsu
AppliedPATCH 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).
Signed-off-by Tetsuyuki Kobayashi <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
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@@ -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: 40AD1FA6PATCH v4 2/7 arm: rmobile: kzm9g: Adjust low level hardware setting
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
@@ -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
PATCH v4 3/7 arm: rmobile: kzm9g: change prompt to board specific
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
Nobuhiro Iwamatsu
AppliedPATCH 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.
Signed-off-by Tetsuyuki Kobayashi <[email protected]>Signed-off-by Nobuhiro Iwamatsu <[email protected]>---
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@@ -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: 40AD1FA6PATCH v4 4/7 arm: rmobile: kzm9g: Add dummy member to struct sh73a0_rwdt
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
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_rwdtinsh73a0.h. Without this, initializing watch dog timer goes wrong.Signed-off-by Tetsuyuki Kobayashi <[email protected]>---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No changearch/arm/include/asm/arch-rmobile/sh73a0.h | 2 ++ 1 file changed, 2 insertions(+)arch/arm/include/asm/arch-rmobile/sh73a0.h +2
-1@@ -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: 40AD1FA6PATCH 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
@@ -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
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_rwdtinsh73a0.h. Without this, initializing watch dog timer goes wrong.Signed-off-by Tetsuyuki Kobayashi <[email protected]>---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No change
Changes for v5:
- remove volatilearch/arm/include/asm/arch-rmobile/sh73a0.h | 2 ++ 1 file changed, 2 insertions(+)arch/arm/include/asm/arch-rmobile/sh73a0.h +2
-1@@ -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: 40AD1FA6PATCH v4 5/7 MAINTAINERS: Add Tetsuyuki Kobayshi for kzm9g
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
Nobuhiro Iwamatsu
AppliedPATCH 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]>
Signed-off-by Tetsuyuki Kobayashi <[email protected]>---
Changes for v2:
- New
Changes for v3:
- No change
Changes for v4:
- No changeMAINTAINERS | 1 + 1 file changed, 1 insertion(+)MAINTAINERS +1
-1@@ -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: 40AD1FA6PATCH 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.
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,
NobuhiroActually 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: 40AD1FA6PATCH 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.
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-----
PATCH v4 6/7 arm: rmobile: kzm9g: Modify bus controller setting for CS4
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
Nobuhiro Iwamatsu
AppliedPATCH 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 1011Signed-off-by Tetsuyuki Kobayashi <[email protected]>---
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@@ -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: 40AD1FA6PATCH v4 7/7 arm: rmobile: kzm9g: enable reset command
In reply to Tetsuyuki KobayshiFrom: 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
@@ -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
@@ -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
Nobuhiro Iwamatsu
AppliedPATCH 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.
Signed-off-by Tetsuyuki Kobayashi <[email protected]>---
Changes for v4:
- Newarch/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@@ -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@@ -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