arm: socfpga: Adding handoff for SDRAM ctrlcfg.extratime1
authorChin Liang See <clsee@altera.com>
Wed, 21 Sep 2016 02:25:57 +0000 (10:25 +0800)
committerMarek Vasut <marex@denx.de>
Thu, 27 Oct 2016 06:03:08 +0000 (08:03 +0200)
Adding new handoff for SDRAM ctrcfg.extratime1 which is
required for stable LPDDR2 operation. Since the board is
using DDR3, the handoff is set to default value 0.

Signed-off-by: Chin Liang See <clsee@altera.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
board/altera/arria5-socdk/qts/sdram_config.h
board/altera/cyclone5-socdk/qts/sdram_config.h

index e9fe60fc026dc052b0c9c2805c7cfe25b198f188..2589f3f97ec08e75b0be2f9df9425ceba031b41e 100644 (file)
@@ -49,6 +49,9 @@
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TRTP                        4
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_PWRDOWNEXIT         3
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_SELFRFSHEXIT                512
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_BC 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_DIFF_CHIP 0
 #define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_INCSYNC                 0
 #define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_SYNCMODE                        0
 #define CONFIG_HPS_SDR_CTRLCFG_FPGAPORTRST                     0
index 37c147645285b631238f88eba4b7ce5f98902d34..8f3ddceed23ec89f01a94186e7e1587cead57549 100644 (file)
@@ -49,6 +49,9 @@
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING3_TRTP                        3
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_PWRDOWNEXIT         3
 #define CONFIG_HPS_SDR_CTRLCFG_DRAMTIMING4_SELFRFSHEXIT                512
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_BC 0
+#define CONFIG_HPS_SDR_CTRLCFG_EXTRATIME1_CFG_EXTRA_CTL_CLK_RD_TO_WR_DIFF_CHIP 0
 #define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_INCSYNC                 0
 #define CONFIG_HPS_SDR_CTRLCFG_FIFOCFG_SYNCMODE                        0
 #define CONFIG_HPS_SDR_CTRLCFG_FPGAPORTRST                     0