Commit 43581c833876314b3cf556805465a3ab8d86d244

Authored by Akshay Saraswat
Committed by Minkyu Kang
1 parent 061091098a

Config: Exynos5420: Refactor SDRAM Bank and Size

Since, not every board may have all memory channels configured
and all available banks of DMC used, we wish to refactor configs
for Memory Bank size and numbers as per board memory config.
For Example, Peach-Pit has 2GB memory and will be using only 4 banks
but Peach-Pi has 3.5GB memory and will be using all 7 available
SDRAM banks.

Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 4 changed files with 12 additions and 4 deletions Side-by-side Diff

include/configs/exynos5420-common.h
... ... @@ -57,10 +57,6 @@
57 57 */
58 58 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_IRAM_TOP - 0x800)
59 59  
60   -/* DRAM Memory Banks */
61   -#define CONFIG_NR_DRAM_BANKS 7
62   -#define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
63   -
64 60 /* Miscellaneous configurable options */
65 61 #define CONFIG_DEFAULT_CONSOLE "console=ttySAC1,115200n8\0"
66 62  
include/configs/peach-pi.h
... ... @@ -43,5 +43,9 @@
43 43 #define CONFIG_USB_XHCI
44 44 #define CONFIG_USB_XHCI_EXYNOS
45 45  
  46 +/* DRAM Memory Banks */
  47 +#define CONFIG_NR_DRAM_BANKS 7
  48 +#define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
  49 +
46 50 #endif /* __CONFIG_PEACH_PI_H */
include/configs/peach-pit.h
... ... @@ -43,5 +43,9 @@
43 43 #define CONFIG_USB_XHCI
44 44 #define CONFIG_USB_XHCI_EXYNOS
45 45  
  46 +/* DRAM Memory Banks */
  47 +#define CONFIG_NR_DRAM_BANKS 4
  48 +#define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
  49 +
46 50 #endif /* __CONFIG_PEACH_PIT_H */
include/configs/smdk5420.h
... ... @@ -23,5 +23,9 @@
23 23 #define CONFIG_IDENT_STRING " for SMDK5420"
24 24 #define CONFIG_DEFAULT_CONSOLE "console=ttySAC1,115200n8\0"
25 25  
  26 +/* DRAM Memory Banks */
  27 +#define CONFIG_NR_DRAM_BANKS 7
  28 +#define SDRAM_BANK_SIZE (512UL << 20UL) /* 512 MB */
  29 +
26 30 #endif /* __CONFIG_SMDK5420_H */