Title: [3983] trunk: Fix bug[#3726] Add DDR chip type option for bf548-ezkit board
.
- Revision
- 3983
- Author
- sonicz
- Date
- 2007-12-05 01:43:00 -0600 (Wed, 05 Dec 2007)
Log Message
Fix bug[#3726] Add DDR chip type option for bf548-ezkit board.
Support both MT46V32M16-6T and MT46V32M16-5B.
Diffstat
arch/blackfin/Kconfig | 22 +++++++++++++++-------
include/asm-blackfin/mach-bf548/mem_init.h | 18 +++++++++++++++++-
2 files changed, 32 insertions(+), 8 deletions(-)
Modified Paths
Diff
Modified: trunk/arch/blackfin/Kconfig (3982 => 3983)
--- trunk/arch/blackfin/Kconfig 2007-12-05 06:52:12 UTC (rev 3982)
+++ trunk/arch/blackfin/Kconfig 2007-12-05 07:43:00 UTC (rev 3983)
@@ -249,11 +249,6 @@
depends on (BFIN527_EZKIT)
default y
-config MEM_MT46V32M16_6T
- bool
- depends on (BFIN548_EZKIT)
- default y
-
config BFIN_SHARED_FLASH_ENET
bool
depends on (BFIN533_STAMP)
@@ -318,7 +313,7 @@
range 1 64
default "22" if BFIN533_EZKIT
default "45" if BFIN533_STAMP
- default "20" if (BFIN537_STAMP || BFIN527_EZKIT)
+ default "20" if (BFIN537_STAMP || BFIN527_EZKIT || BFIN548_EZKIT)
default "22" if BFIN533_BLUETECHNIX_CM
default "20" if BFIN537_BLUETECHNIX_CM
default "20" if BFIN561_BLUETECHNIX_CM
@@ -355,7 +350,7 @@
range 1 15
default 5 if BFIN533_EZKIT
default 5 if BFIN533_STAMP
- default 4 if (BFIN537_STAMP || BFIN527_EZKIT)
+ default 4 if (BFIN537_STAMP || BFIN527_EZKIT || BFIN548_EZKIT)
default 5 if BFIN533_BLUETECHNIX_CM
default 4 if BFIN537_BLUETECHNIX_CM
default 4 if BFIN561_BLUETECHNIX_CM
@@ -427,6 +422,19 @@
default 11 if BFIN533_STAMP
default 10 if PNAV10
+
+choice
+ prompt "DDR SDRAM Chip Type"
+ depends on BFIN548_EZKIT
+ default MEM_MT46V32M16_6T
+
+config MEM_MT46V32M16_6T
+ bool "MT46V32M16_6T"
+
+config MEM_MT46V32M16_5B
+ bool "MT46V32M16_5B"
+endchoice
+
config ENET_FLASH_PIN
int "PF port/pin used for flash and ethernet sharing"
depends on (BFIN533_STAMP)
Modified: trunk/include/asm-blackfin/mach-bf548/mem_init.h (3982 => 3983)
--- trunk/include/asm-blackfin/mach-bf548/mem_init.h 2007-12-05 06:52:12 UTC (rev 3982)
+++ trunk/include/asm-blackfin/mach-bf548/mem_init.h 2007-12-05 07:43:00 UTC (rev 3983)
@@ -46,12 +46,28 @@
#define DDR_tWR DDR_TWR(MIN_DDR_SCLK(15))
#endif
+#if (CONFIG_MEM_MT46V32M16_5B)
+#define DDR_SIZE DEVSZ_512
+#define DDR_WIDTH DEVWD_16
+
+#define DDR_tRC DDR_TRC(MIN_DDR_SCLK(55))
+#define DDR_tRAS DDR_TRAS(MIN_DDR_SCLK(40))
+#define DDR_tRP DDR_TRP(MIN_DDR_SCLK(15))
+#define DDR_tRFC DDR_TRFC(MIN_DDR_SCLK(70))
+#define DDR_tREFI DDR_TREFI(MIN_DDR_SCLK(7800))
+
+#define DDR_tRCD DDR_TRCD(MIN_DDR_SCLK(15))
+#define DDR_tWTR DDR_TWTR(2)
+#define DDR_tMRD DDR_TMRD(MIN_DDR_SCLK(10))
+#define DDR_tWR DDR_TWR(MIN_DDR_SCLK(15))
+#endif
+
#if (CONFIG_MEM_GENERIC_BOARD)
#define DDR_SIZE DEVSZ_512
#define DDR_WIDTH DEVWD_16
#define DDR_tRCD DDR_TRCD(3)
-#define DDR_tWTR DDR_TWTR(1)
+#define DDR_tWTR DDR_TWTR(2)
#define DDR_tWR DDR_TWR(2)
#define DDR_tMRD DDR_TMRD(2)
#define DDR_tRP DDR_TRP(3)
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits