parent
42e2dbc120
commit
4a14f424b5
|
@ -115,27 +115,6 @@ static int display_banner (void)
|
|||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* WARNING: this code looks "cleaner" than the PowerPC version, but
|
||||
* has the disadvantage that you either get nothing, or everything.
|
||||
* On PowerPC, you might see "DRAM: " before the system hangs - which
|
||||
* gives a simple yet clear indication which part of the
|
||||
* initialization if failing.
|
||||
*/
|
||||
static int display_dram_config (void)
|
||||
{
|
||||
int i;
|
||||
|
||||
puts ("RAM Configuration:\n");
|
||||
|
||||
for(i=0; i<CONFIG_NR_DRAM_BANKS; i++) {
|
||||
printf ("Bank #%d: 0x%08lx ", i, gd->bd->bi_dram[i].start);
|
||||
print_size (gd->bd->bi_dram[i].size, "\n");
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Breathe some life into the board...
|
||||
*
|
||||
|
@ -159,13 +138,6 @@ static int display_dram_config (void)
|
|||
* argument, and returns an integer return code, where 0 means
|
||||
* "continue" and != 0 means "fatal error, hang the system".
|
||||
*/
|
||||
typedef int (init_fnc_t) (void);
|
||||
|
||||
init_fnc_t *init_sequence[] = {
|
||||
display_banner, /* say that we are here */
|
||||
display_dram_config,
|
||||
NULL,
|
||||
};
|
||||
|
||||
extern initcall_t __u_boot_initcalls_start[], __u_boot_initcalls_end[];
|
||||
|
||||
|
|
|
@ -41,11 +41,6 @@ typedef struct bd_info {
|
|||
struct environment_s *bi_env;
|
||||
ulong bi_arch_number; /* unique id for this board */
|
||||
ulong bi_boot_params; /* where this board expects params */
|
||||
struct /* RAM configuration */
|
||||
{
|
||||
ulong start;
|
||||
ulong size;
|
||||
} bi_dram[CONFIG_NR_DRAM_BANKS];
|
||||
} bd_t;
|
||||
|
||||
#define bi_env_data bi_env->data
|
||||
|
|
Loading…
Reference in New Issue