Lines Matching refs:mem_timings
43 static struct memory_timings mem_timings;
48 return mem_timings.slow_dll_ctrl;
53 return mem_timings.fast_dll_ctrl;
58 return mem_timings.m_type;
120 mem_timings.m_type = !((sdrc_read_reg(SDRC_MR_0) & 0x3) == 0x1);
126 mem_timings.base_cs = 1;
128 mem_timings.base_cs = 0;
130 if (mem_timings.m_type != M_DDR)
134 if (((mem_timings.fast_dll_ctrl & (1 << 2)) == M_LOCK_CTRL))
135 mem_timings.dll_mode = M_UNLOCK;
137 mem_timings.dll_mode = M_LOCK;
139 if (mem_timings.base_cs == 0) {
151 mem_timings.fast_dll_ctrl = (fast_dll | (3 << 8));
154 omap2_sram_ddr_init(&mem_timings.slow_dll_ctrl,
155 mem_timings.fast_dll_ctrl,
156 mem_timings.base_cs,
158 mem_timings.slow_dll_ctrl &= 0xff00; /* Keep lock value */
161 mem_timings.slow_dll_ctrl |=
162 ((mem_timings.fast_dll_ctrl & 0xF) | (1 << 2));
165 mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8));