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