mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-03-13 21:36:57 +00:00
common: Update cmd_bdinfo for PPC
Add board detail function to print more individual board information. Signed-off-by: York Sun <yorksun@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
53237afe5b
commit
e79394643b
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,10 @@ static void print_mhz(const char *name, unsigned long hz)
|
|||
}
|
||||
|
||||
#if defined(CONFIG_PPC)
|
||||
void __weak board_detail(void)
|
||||
{
|
||||
/* Please define boot_detail() for your platform */
|
||||
}
|
||||
|
||||
int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
||||
{
|
||||
|
@ -162,6 +166,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|||
printf("IP addr = %s\n", getenv("ipaddr"));
|
||||
printf("baudrate = %6u bps\n", bd->bi_baudrate);
|
||||
print_num("relocaddr", gd->relocaddr);
|
||||
board_detail();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue