armv8: ls1012a: Update Refresh cycle for DDR
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Tue, 19 Jul 2016 10:24:33 +0000 (15:54 +0530)
committerYork Sun <york.sun@nxp.com>
Tue, 2 Aug 2016 16:46:02 +0000 (09:46 -0700)
Refresh cycle value must be selected based on the frequency
of DDR. tREFI = 7.8 us as per JEDEC. The value for MDREF[REF_CNT]
should be based on round up (tREFI/tCK) formula. For 500MHz, mdref
value should be 0x0f3c8000.

Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
include/fsl_mmdc.h

index 833696b5e8d11b286cb6a85231155c0d4249ffc7..a939d89d6bc0d3436d126f13d53b5951a081b370 100644 (file)
@@ -43,7 +43,7 @@
 
 #define CONFIG_SYS_MMDC_CORE_PWR_SAV_CTRL_STAT 0x00001067
 
-#define CONFIG_SYS_MMDC_CORE_REFRESH_CTL       0x103e8000
+#define CONFIG_SYS_MMDC_CORE_REFRESH_CTL       0x0f3c8000
 
 #define START_REFRESH                          0x00000001