Skip to contentSkip to conversation

arm: rmobile: kzm9g: Modify sdram area

PATCH New Tetsuyuki Kobayashi 2 participants 2 messages Jun 25, 2012 – Jul 5, 2012

lore
Share & tools
lore
#0 lore raw

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

This patch depends on Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board

Reserve first 16MB for RT-CPU (as same as kernel config). Without this patch, kernel can't get ATAGS info from u-boot properly.

---
 include/configs/kzm_a9_gt.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm_a9_gt.h +3 -2
index 48b7afa..4749ca7 100644
@@ -93,8 +93,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	(1 * 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
#1 lore raw

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

Hi,

Thank you for your patch.

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

Quoted 15 lines

This patch depends on Nobuhiro Iwamatsu's arm: rmobile: Add supoprt for KMC KZM-A9-GT board

Reserve first 16MB for RT-CPU (as same as kernel config). Without this patch, kernel can't get ATAGS info from u-boot properly.

---
 include/configs/kzm_a9_gt.h |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
include/configs/kzm_a9_gt.h +0 -0
index 48b7afa..4749ca7 100644

include/configs/kzm_a9_gt.h line 96

Quoted 6 lines
include/configs/kzm_a9_gt.h +1 -2
@@ -93,8 +93,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     (1 * 16 * 1024 * 1024)

I think that "1" is unnecessary.

include/configs/kzm_a9_gt.h line 101

Quoted 5 lines
include/configs/kzm_a9_gt.h +2 -0
+#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)

Best regards,
Nobuhiro

Signature · 1 line
Nobuhiro Iwamatsu