From: Hannes Schmelzer Date: Thu, 11 Jun 2015 10:27:09 +0000 (+0200) Subject: common/cmd_bdinfo: show gd->board_type X-Git-Tag: v2015.07-rc3~90 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7bb7d672aa50ed92a10ee268d0fed39aaa97a7c8;p=u-boot common/cmd_bdinfo: show gd->board_type sometimes it is usefull to know if board-detection has written the correct value into gd->board_type. For this we add some output to the bdinfo command. Signed-off-by: Hannes Schmelzer --- diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index f16d5c719f..ed3b9351b1 100644 --- a/common/cmd_bdinfo.c +++ b/common/cmd_bdinfo.c @@ -399,6 +399,9 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, printf("ARM frequency = %ld MHz\n", gd->bd->bi_arm_freq); printf("DSP frequency = %ld MHz\n", gd->bd->bi_dsp_freq); printf("DDR frequency = %ld MHz\n", gd->bd->bi_ddr_freq); +#endif +#ifdef CONFIG_BOARD_TYPES + printf("Board Type = %ld\n", gd->board_type); #endif return 0; }