Patchwork [U-Boot,v3,2/3] mx23: Document the tRAS lockout setting in memory initialization

login
register
mail settings
Submitter Otavio Salvador
Date Jan. 29, 2013, 10:37 a.m.
Message ID <1359455824-24058-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/216492/
State Not Applicable
Headers show

Comments

Otavio Salvador - Jan. 29, 2013, 10:37 a.m.
Add a comment about the tRAS lockout setting of HW_DRAM_CTL08 to
enable the 'Fast Auto Pre-Charge' found in the memory chip. The
setting is applied after memory initialization and it is worth
document it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
Changes in v3:
- Revert initialization change and comment the code

Changes in v2:
- Improve commit message

 arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
index f8392f6..37b50e9 100644
--- a/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
+++ b/arch/arm/cpu/arm926ejs/mxs/spl_mem_init.c
@@ -119,6 +119,7 @@  static void initialize_dram_values(void)
 		writel(dram_vals[i], MXS_DRAM_BASE + (4 * i));
 
 #ifdef CONFIG_MX23
+	/* Enable tRAS lockout in HW_DRAM_CTL08 */
 	writel((1 << 24), MXS_DRAM_BASE + (4 * 8));
 #endif
 }