Patchwork [U-Boot,v4,1/7] arm: rmobile: kzm9g: Modify sdram area

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

Comments

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

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(-)
Nobuhiro Iwamatsu - July 19, 2012, 11:43 p.m.
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
>

Patch

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)