[U-Boot] [PATCH 10/11] arm/pxa: fix sdram memory layout for vpac270

Mikhail Kshevetskiy mikhail.kshevetskiy at gmail.com
Thu Aug 26 12:55:45 CEST 2010


The board have only 128 Mb of memory and only two first memory banks are used.
Also remove unneeded CONFIG_SYS_DRAM_SIZE constant and set default load address
to be in sdram.

PS: This patch should not go upstream at this point as it specific
    to my revision of voipac

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy at gmail.com>
---
 include/configs/vpac270.h |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/include/configs/vpac270.h b/include/configs/vpac270.h
index c92eb40..b04d1e8 100644
--- a/include/configs/vpac270.h
+++ b/include/configs/vpac270.h
@@ -166,19 +166,22 @@
 /*
  * DRAM Map
  */
-#define	CONFIG_NR_DRAM_BANKS		2		/* We have 2 banks of DRAM */
-#define	PHYS_SDRAM_1			0xa0000000	/* SDRAM Bank #1 */
-#define	PHYS_SDRAM_1_SIZE		0x08000000	/* 128 MB */
-#define	PHYS_SDRAM_2			0x80000000	/* SDRAM Bank #2 */
-#define	PHYS_SDRAM_2_SIZE		0x08000000	/* 128 MB */
+#define	CONFIG_NR_DRAM_BANKS	4		/* We have 2 banks of DRAM */
+#define PHYS_SDRAM_1		0xa0000000	/* SDRAM Bank #1 */
+#define PHYS_SDRAM_1_SIZE	0x04000000	/* 64 MB */
+#define PHYS_SDRAM_2		0xa4000000	/* SDRAM Bank #2 */
+#define PHYS_SDRAM_2_SIZE	0x04000000	/* 64 MB */
+#define PHYS_SDRAM_3		0xa8000000	/* SDRAM Bank #3 */
+#define PHYS_SDRAM_3_SIZE	0x00000000	/* 0 MB */
+#define PHYS_SDRAM_4		0xac000000	/* SDRAM Bank #4 */
+#define PHYS_SDRAM_4_SIZE	0x00000000	/* 0 MB */
 
 #define	CONFIG_SYS_DRAM_BASE		0xa0000000	/* CS0 */
-#define	CONFIG_SYS_DRAM_SIZE		0x10000000	/* 256 MB DRAM */
 
 #define CONFIG_SYS_MEMTEST_START	0xa0400000	/* memtest works on */
 #define CONFIG_SYS_MEMTEST_END		0xa0800000	/* 4 ... 8 MB in DRAM */
 
-#define	CONFIG_SYS_LOAD_ADDR		(0x5c000000)
+#define	CONFIG_SYS_LOAD_ADDR		0xa0000000
 
 /*
  * NOR FLASH
-- 
1.7.1



More information about the U-Boot mailing list