Lines Matching defs:sdram
17 * The SDRAM type can be passed on the command line as cpu_sa1110.sdram=type
142 struct sdram_params *sdram)
156 if ((ns_to_cycles(sdram->tck, sd_khz) > 1) ||
162 twr = ns_to_cycles(sdram->twr, mem_khz);
165 trp = ns_to_cycles(sdram->trp, mem_khz) - 1;
171 sd->mdcnfg |= sdram->cas_latency << 12;
172 sd->mdcnfg |= sdram->cas_latency << 28;
183 set_mdcas(sd->mdcas, sd_khz >= 62000, ns_to_cycles(sdram->trcd, mem_khz));
201 sdram_update_refresh(u_int cpu_khz, struct sdram_params *sdram)
203 u_int ns_row = (sdram->refresh * 1000) >> sdram->rows;
221 struct sdram_params *sdram = &sdram_params;
247 sdram_calculate_timing(&sd, freqs.new, sdram);
297 sdram_update_refresh(freqs.new, sdram);
326 struct sdram_params *sdram;
328 for (sdram = sdram_tbl; sdram < sdram_tbl + ARRAY_SIZE(sdram_tbl); sdram++)
329 if (strcmp(name, sdram->name) == 0)
330 return sdram;
339 struct sdram_params *sdram;
358 sdram = sa1110_find_sdram(name);
359 if (sdram) {
362 sdram->tck, sdram->trcd, sdram->trp,
363 sdram->twr, sdram->refresh, sdram->cas_latency);
365 memcpy(&sdram_params, sdram, sizeof(sdram_params));
373 module_param_string(sdram, sdram_name, sizeof(sdram_name), 0);