summaryrefslogtreecommitdiff
path: root/common/cmd_bdinfo.c
diff options
context:
space:
mode:
authorYork Sun <yorksun@freescale.com>2013-05-14 08:06:39 +0000
committerAndy Fleming <afleming@freescale.com>2013-05-24 16:54:09 -0500
commite79394643b2636b2fc53c8459e813b6feedac0eb (patch)
tree19cef0c20b99ccfd616fd6f98915d56bf67dab12 /common/cmd_bdinfo.c
parent53237afe5b64abe7b17fbfed958f3dc83f503ffa (diff)
downloadu-boot-imx-e79394643b2636b2fc53c8459e813b6feedac0eb.zip
u-boot-imx-e79394643b2636b2fc53c8459e813b6feedac0eb.tar.gz
u-boot-imx-e79394643b2636b2fc53c8459e813b6feedac0eb.tar.bz2
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>
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r--common/cmd_bdinfo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 78e0bf6..17dc961 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -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;
}