Skip to content
Snippets Groups Projects
Commit 0cf7e189 authored by Michael Pratt's avatar Michael Pratt Committed by Minkyu Kang
Browse files

Exynos: Split 5250 and 5420 memory bank configuration


Since snow has a different memory configuration than peach, split the
configuration between the 5250 and 5420. Exynos 5420 supports runtime
memory configuration detection, and can make the determination between 4
and 7 banks at runtime.

Include the bank size with the number of banks for context to make the
number of banks meaningful.

Signed-off-by: default avatarMichael Pratt <mpratt@chromium.org>
Signed-off-by: default avatarAkshay Saraswat <akshay.s@samsung.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 582693b2
Branches
Tags
No related merge requests found
...@@ -161,8 +161,6 @@ ...@@ -161,8 +161,6 @@
#define CONFIG_RD_LVL #define CONFIG_RD_LVL
#define CONFIG_NR_DRAM_BANKS 8
#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
#define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE #define PHYS_SDRAM_1 CONFIG_SYS_SDRAM_BASE
#define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE #define PHYS_SDRAM_1_SIZE SDRAM_BANK_SIZE
#define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE) #define PHYS_SDRAM_2 (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
......
...@@ -65,4 +65,9 @@ ...@@ -65,4 +65,9 @@
#define LCD_YRES 1600 #define LCD_YRES 1600
#define LCD_BPP LCD_COLOR16 #define LCD_BPP LCD_COLOR16
#endif #endif
/* DRAM Memory Banks */
#define CONFIG_NR_DRAM_BANKS 8
#define SDRAM_BANK_SIZE (256UL << 20UL) /* 256 MB */
#endif /* __CONFIG_5250_H */ #endif /* __CONFIG_5250_H */
...@@ -45,4 +45,8 @@ ...@@ -45,4 +45,8 @@
*/ */
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_IRAM_TOP - 0x800) #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_IRAM_TOP - 0x800)
/* DRAM Memory Banks */
#define CONFIG_NR_DRAM_BANKS 7
#define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
#endif /* __CONFIG_EXYNOS5420_H */ #endif /* __CONFIG_EXYNOS5420_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment