common/cmd_bdinfo: show gd->board_type
PATCH 1/1 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 <[email protected]>
---
common/cmd_bdinfo.c | 3 +++ 1 file changed, 3 insertions(+)
common/cmd_bdinfo.c +3 -0
@@ -400,6 +400,9 @@ static int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc,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 ; }
Signature · 1 line
2.1.4
PATCH 1/1 common/cmd_bdinfo: show gd->board_type
Quoted 7 lines · Hannes Schmelzer
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 <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150612/abca1352/attachment.sig>