Skip to contentSkip to conversation

common/cmd_bdinfo: show gd->board_type

PATCH New Hannes Schmelzer 2 participants 2 messages Jun 11, 2015 – Jun 12, 2015

lore
Share & tools
lore
#0 lore raw

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.

---

 common/cmd_bdinfo.c | 3 +++
 1 file changed, 3 insertions(+)
common/cmd_bdinfo.c +3 -0
index f16d5c7..ed3b935 100644
@@ -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
#1 lore raw

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.

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>