]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Config: Exynos5420: Refactor SDRAM Bank and Size
authorAkshay Saraswat <akshay.s@samsung.com>
Thu, 13 Nov 2014 17:08:19 +0000 (22:38 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 17 Nov 2014 10:03:38 +0000 (19:03 +0900)
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>
include/configs/exynos5420-common.h
include/configs/peach-pi.h
include/configs/peach-pit.h
include/configs/smdk5420.h

index 03f941ccd204bbbd6a7d25945e73e8d0534931ce..218d2b49c737872215d6f02fa3d1d786093bb278 100644 (file)
  */
 #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 */
-
 /* Miscellaneous configurable options */
 #define CONFIG_DEFAULT_CONSOLE         "console=ttySAC1,115200n8\0"
 
index d8da7ef91933d655c6c5f0301bb343442194af1b..8a82402ec159f164b9c579ad351dbac0983d9d8b 100644 (file)
@@ -43,4 +43,8 @@
 #define CONFIG_USB_XHCI
 #define CONFIG_USB_XHCI_EXYNOS
 
+/* DRAM Memory Banks */
+#define CONFIG_NR_DRAM_BANKS   7
+#define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
+
 #endif /* __CONFIG_PEACH_PI_H */
index 29a099687ae1168a8e4457aa82e8251adb690cdb..ad5db57f5f94678591d2c6f2398cd3ca83ed2bd9 100644 (file)
@@ -43,4 +43,8 @@
 #define CONFIG_USB_XHCI
 #define CONFIG_USB_XHCI_EXYNOS
 
+/* DRAM Memory Banks */
+#define CONFIG_NR_DRAM_BANKS   4
+#define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
+
 #endif /* __CONFIG_PEACH_PIT_H */
index fd2d482e4ae912c1a8f58cfd26ba798cd14938fa..5c9a3c0b21b676e5d09d13796abdac1fbbd71b6d 100644 (file)
@@ -23,4 +23,8 @@
 #define CONFIG_IDENT_STRING    " for SMDK5420"
 #define CONFIG_DEFAULT_CONSOLE         "console=ttySAC1,115200n8\0"
 
+/* DRAM Memory Banks */
+#define CONFIG_NR_DRAM_BANKS   7
+#define SDRAM_BANK_SIZE                (512UL << 20UL) /* 512 MB */
+
 #endif /* __CONFIG_SMDK5420_H */