Lines Matching refs:mem_timings
42 static struct memory_timings mem_timings; variable
47 return mem_timings.slow_dll_ctrl; in omap2xxx_sdrc_get_slow_dll_ctrl()
52 return mem_timings.fast_dll_ctrl; in omap2xxx_sdrc_get_fast_dll_ctrl()
57 return mem_timings.m_type; in omap2xxx_sdrc_get_type()
123 mem_timings.m_type = !((sdrc_read_reg(SDRC_MR_0) & 0x3) == 0x1); in omap2xxx_sdrc_init_params()
129 mem_timings.base_cs = 1; in omap2xxx_sdrc_init_params()
131 mem_timings.base_cs = 0; in omap2xxx_sdrc_init_params()
133 if (mem_timings.m_type != M_DDR) in omap2xxx_sdrc_init_params()
137 if (((mem_timings.fast_dll_ctrl & (1 << 2)) == M_LOCK_CTRL)) in omap2xxx_sdrc_init_params()
138 mem_timings.dll_mode = M_UNLOCK; in omap2xxx_sdrc_init_params()
140 mem_timings.dll_mode = M_LOCK; in omap2xxx_sdrc_init_params()
142 if (mem_timings.base_cs == 0) { in omap2xxx_sdrc_init_params()
154 mem_timings.fast_dll_ctrl = (fast_dll | (3 << 8)); in omap2xxx_sdrc_init_params()
157 omap2_sram_ddr_init(&mem_timings.slow_dll_ctrl, in omap2xxx_sdrc_init_params()
158 mem_timings.fast_dll_ctrl, in omap2xxx_sdrc_init_params()
159 mem_timings.base_cs, in omap2xxx_sdrc_init_params()
161 mem_timings.slow_dll_ctrl &= 0xff00; /* Keep lock value */ in omap2xxx_sdrc_init_params()
164 mem_timings.slow_dll_ctrl |= in omap2xxx_sdrc_init_params()
165 ((mem_timings.fast_dll_ctrl & 0xF) | (1 << 2)); in omap2xxx_sdrc_init_params()
168 mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8)); in omap2xxx_sdrc_init_params()