From 56249fea3d5e32cddcd9160e51ec93a9c4327c6b Mon Sep 17 00:00:00 2001
From: Gerlando Falauto <gerlando.falauto@keymile.com>
Date: Fri, 27 Jul 2012 05:16:40 +0000
Subject: [PATCH] powerpc/82xx: adapt SDRAM settings for mgcoge3ne

The HW guys suggested to change these two values. And these values are
now identical to the values we use on mgcoge.

PSDMR_WRC was set to 1C as it should lead to better performance.

Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
---
 include/configs/km82xx.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/configs/km82xx.h b/include/configs/km82xx.h
index f046337a06..3c2117fc39 100644
--- a/include/configs/km82xx.h
+++ b/include/configs/km82xx.h
@@ -128,16 +128,18 @@
 #define CONFIG_SYS_OR1	((~(CONFIG_SYS_GLOBAL_SDRAM_LIMIT-1) & \
 			   ORxS_SDAM_MSK)		|\
 			ORxS_BPD_4			|\
-			ORxS_NUMR_13)
+			ORxS_NUMR_13			|\
+			ORxS_IBID)
 
 #define CONFIG_SYS_PSDMR (				\
 			PSDMR_PBI			|\
+			PSDMR_RFEN			|\
 			PSDMR_BSMA_A13_A15		|\
 			PSDMR_RFRC_5_CLK		|\
 			PSDMR_PRETOACT_2W		|\
 			PSDMR_ACTTORW_2W		|\
 			PSDMR_LDOTOPRE_1C		|\
-			PSDMR_WRC_2C			|\
+			PSDMR_WRC_1C			|\
 			PSDMR_CL_2)
 
 #define CONFIG_SYS_SDRAM_LIST	{					\
-- 
2.39.5