Lines Matching refs:sdram
144 struct sdram_params *sdram) in sdram_calculate_timing() argument
158 if ((ns_to_cycles(sdram->tck, sd_khz) > 1) || in sdram_calculate_timing()
164 twr = ns_to_cycles(sdram->twr, mem_khz); in sdram_calculate_timing()
167 trp = ns_to_cycles(sdram->trp, mem_khz) - 1; in sdram_calculate_timing()
173 sd->mdcnfg |= sdram->cas_latency << 12; in sdram_calculate_timing()
174 sd->mdcnfg |= sdram->cas_latency << 28; in sdram_calculate_timing()
186 ns_to_cycles(sdram->trcd, mem_khz)); in sdram_calculate_timing()
213 sdram_update_refresh(u_int cpu_khz, struct sdram_params *sdram) in sdram_update_refresh() argument
215 u_int ns_row = (sdram->refresh * 1000) >> sdram->rows; in sdram_update_refresh()
231 struct sdram_params *sdram = &sdram_params; in sa1110_target() local
236 sdram_calculate_timing(&sd, sa11x0_freq_table[ppcr].frequency, sdram); in sa1110_target()
299 sdram_update_refresh(sa11x0_freq_table[ppcr].frequency, sdram); in sa1110_target()
324 struct sdram_params *sdram; in sa1110_find_sdram() local
326 for (sdram = sdram_tbl; sdram < sdram_tbl + ARRAY_SIZE(sdram_tbl); in sa1110_find_sdram()
327 sdram++) in sa1110_find_sdram()
328 if (strcmp(name, sdram->name) == 0) in sa1110_find_sdram()
329 return sdram; in sa1110_find_sdram()
338 struct sdram_params *sdram; in sa1110_clk_init() local
357 sdram = sa1110_find_sdram(name); in sa1110_clk_init()
358 if (sdram) { in sa1110_clk_init()
361 sdram->tck, sdram->trcd, sdram->trp, in sa1110_clk_init()
362 sdram->twr, sdram->refresh, sdram->cas_latency); in sa1110_clk_init()
364 memcpy(&sdram_params, sdram, sizeof(sdram_params)); in sa1110_clk_init()
372 module_param_string(sdram, sdram_name, sizeof(sdram_name), 0);