Lines Matching refs:mem_timings
37 static struct memory_timings mem_timings; variable
42 return mem_timings.slow_dll_ctrl; in omap2xxx_sdrc_get_slow_dll_ctrl()
47 return mem_timings.fast_dll_ctrl; in omap2xxx_sdrc_get_fast_dll_ctrl()
52 return mem_timings.m_type; in omap2xxx_sdrc_get_type()
118 mem_timings.m_type = !((sdrc_read_reg(SDRC_MR_0) & 0x3) == 0x1); in omap2xxx_sdrc_init_params()
124 mem_timings.base_cs = 1; in omap2xxx_sdrc_init_params()
126 mem_timings.base_cs = 0; in omap2xxx_sdrc_init_params()
128 if (mem_timings.m_type != M_DDR) in omap2xxx_sdrc_init_params()
132 if (((mem_timings.fast_dll_ctrl & (1 << 2)) == M_LOCK_CTRL)) in omap2xxx_sdrc_init_params()
133 mem_timings.dll_mode = M_UNLOCK; in omap2xxx_sdrc_init_params()
135 mem_timings.dll_mode = M_LOCK; in omap2xxx_sdrc_init_params()
137 if (mem_timings.base_cs == 0) { in omap2xxx_sdrc_init_params()
149 mem_timings.fast_dll_ctrl = (fast_dll | (3 << 8)); in omap2xxx_sdrc_init_params()
152 omap2_sram_ddr_init(&mem_timings.slow_dll_ctrl, in omap2xxx_sdrc_init_params()
153 mem_timings.fast_dll_ctrl, in omap2xxx_sdrc_init_params()
154 mem_timings.base_cs, in omap2xxx_sdrc_init_params()
156 mem_timings.slow_dll_ctrl &= 0xff00; /* Keep lock value */ in omap2xxx_sdrc_init_params()
159 mem_timings.slow_dll_ctrl |= in omap2xxx_sdrc_init_params()
160 ((mem_timings.fast_dll_ctrl & 0xF) | (1 << 2)); in omap2xxx_sdrc_init_params()
163 mem_timings.slow_dll_ctrl |= ((1 << 1) | (3 << 8)); in omap2xxx_sdrc_init_params()