mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-22 23:21:31 +00:00
tqm85xx: Remove board_add_ram_info()
This is in preparation for adding one common 8xxx board_add_ram_info() function for all 8xxx boards Signed-off-by: Peter Tyser <ptyser@xes-inc.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
This commit is contained in:
parent
ed2c9488bb
commit
12a440ae6d
1 changed files with 3 additions and 30 deletions
|
@ -374,31 +374,6 @@ long int sdram_setup (int casl)
|
||||||
return (i < N_DDR_CS_CONF) ? ddr_cs_conf[i].size : 0;
|
return (i < N_DDR_CS_CONF) ? ddr_cs_conf[i].size : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_add_ram_info (int use_default)
|
|
||||||
{
|
|
||||||
int casl;
|
|
||||||
|
|
||||||
if (use_default)
|
|
||||||
casl = CONFIG_DDR_DEFAULT_CL;
|
|
||||||
else
|
|
||||||
casl = cas_latency ();
|
|
||||||
|
|
||||||
puts (" (CL=");
|
|
||||||
switch (casl) {
|
|
||||||
case 20:
|
|
||||||
puts ("2)");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 25:
|
|
||||||
puts ("2.5)");
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 30:
|
|
||||||
puts ("3)");
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
phys_size_t initdram (int board_type)
|
phys_size_t initdram (int board_type)
|
||||||
{
|
{
|
||||||
long dram_size = 0;
|
long dram_size = 0;
|
||||||
|
@ -438,11 +413,9 @@ phys_size_t initdram (int board_type)
|
||||||
/*
|
/*
|
||||||
* Try again with default CAS latency
|
* Try again with default CAS latency
|
||||||
*/
|
*/
|
||||||
puts ("Problem with CAS lantency");
|
printf ("Problem with CAS lantency, using default CL %d/10!\n",
|
||||||
board_add_ram_info (1);
|
CONFIG_DDR_DEFAULT_CL);
|
||||||
puts (", using default CL!\n");
|
dram_size = sdram_setup (CONFIG_DDR_DEFAULT_CL);
|
||||||
casl = CONFIG_DDR_DEFAULT_CL;
|
|
||||||
dram_size = sdram_setup (casl);
|
|
||||||
puts (" ");
|
puts (" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue