Patchwork [U-Boot,v3,batch,3,01/17] common: Update cmd_bdinfo for PPC

login
register
mail settings
Submitter York Sun
Date May 14, 2013, 6:06 p.m.
Message ID <1368554799-14895-1-git-send-email-yorksun@freescale.com>
Download mbox | patch
Permalink /patch/243795/
State Accepted, archived
Delegated to: Andy Fleming
Headers show

Comments

York Sun - May 14, 2013, 6:06 p.m.
Add board detail function to print more individual board information.

Signed-off-by: York Sun <yorksun@freescale.com>
---
Change since v2: use __weak instead of a weak alias

 common/cmd_bdinfo.c |    5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 85279d5..210cddf 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[])
 {
@@ -169,6 +173,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;
 }