]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/memory.c
ARM: OMAP: Merge board specific files from N800 tree
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / memory.c
index 85cbc2a2e6639bf573ff399203a62df5c616085f..3e5d8cd4ea4f9ed6fb08737e03661d4af6899291 100644 (file)
@@ -30,6 +30,7 @@
 #include "prcm-regs.h"
 #include "memory.h"
 
+
 static struct memory_timings mem_timings;
 
 u32 omap2_memory_get_slow_dll_ctrl(void)
@@ -99,3 +100,20 @@ void omap2_init_memory_params(u32 force_lock_to_unlock_mode)
        /* 90 degree phase for anything below 133Mhz + disable DLL filter */
        mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8));
 }
+
+/* turn on smart idle modes for SDRAM scheduler and controller */
+void __init omap2_init_memory(void)
+{
+       u32 l;
+
+       l = SMS_SYSCONFIG;
+       l &= ~(0x3 << 3);
+       l |= (0x2 << 3);
+       SMS_SYSCONFIG = l;
+
+       l = SDRC_SYSCONFIG;
+       l &= ~(0x3 << 3);
+       l |= (0x2 << 3);
+       SDRC_SYSCONFIG = l;
+
+}