]> git.sur5r.net Git - u-boot/commitdiff
am33xx: Document what we're doing with ddrctrl->ddrckectrl
authorTom Rini <trini@ti.com>
Tue, 24 Jul 2012 21:03:24 +0000 (14:03 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:12 +0000 (14:58 +0200)
- Remove the call to set ddrctrl->ddrioctrl as it's all zeros.
- Comment what we're really setting in ddrctrl->ddrckectrl which is that
  we're operating in the normal mode where EMIF/PHY clock is controlled
  by the PHY.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/am33xx/emif4.c
arch/arm/include/asm/arch-am33xx/ddr_defs.h

index 684b123850b03111d232a0510d1b80cf11e5fe7f..e04e97067896b83703f995d1b92fe8b958198498 100644 (file)
@@ -170,10 +170,8 @@ void config_ddr(short ddr_type)
 
                config_io_ctrl(&ioctrl);
 
-               writel(readl(&ddrctrl->ddrioctrl) & 0xefffffff,
-                               &ddrctrl->ddrioctrl);
-               writel(readl(&ddrctrl->ddrckectrl) | 0x00000001,
-                               &ddrctrl->ddrckectrl);
+               /* Set CKE to be controlled by EMIF/DDR PHY */
+               writel(DDR_CKE_CTRL_NORMAL, &ddrctrl->ddrckectrl);
 
                config_emif_ddr2();
        }
index 879c5fbfa7a4f08cfd19ba7ef8543bed21bcb559..f755736a4c3f8d2677bff296e8248c09760d57dd 100644 (file)
@@ -28,6 +28,7 @@
 #define CMD_FORCE              0x00
 #define CMD_DELAY              0x00
 #define PHY_DLL_LOCK_DIFF      0x0
+#define DDR_CKE_CTRL_NORMAL    0x1
 
 #define DDR2_EMIF_READ_LATENCY 0x100005        /* Enable Dynamic Power Down */
 #define DDR2_EMIF_TIM1         0x0666B3C9