]> git.sur5r.net Git - u-boot/commitdiff
common/cmd_bdinfo: show gd->board_type
authorHannes Schmelzer <oe5hpm@oevsv.at>
Thu, 11 Jun 2015 10:27:09 +0000 (12:27 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jun 2015 12:29:14 +0000 (08:29 -0400)
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 <oe5hpm@oevsv.at>
common/cmd_bdinfo.c

index f16d5c719f8e0f5726d0a5b3df40833d65e7cdcf..ed3b9351b1a7a4648ef3bab4c105b0cfe0cf2dc2 100644 (file)
@@ -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;
 }