summaryrefslogtreecommitdiff
path: root/common/cmd_bdinfo.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2004-10-10 21:21:55 +0000
committerwdenk <wdenk>2004-10-10 21:21:55 +0000
commit03f5c55021c2d6297e66cc11bfea75f149a5d71c (patch)
tree658bdbc75b90b7a122c061fa2aca6d6eb94dfb67 /common/cmd_bdinfo.c
parentcf33678e51e02143ed67850b3f13646fd51fb489 (diff)
downloadu-boot-imx-03f5c55021c2d6297e66cc11bfea75f149a5d71c.zip
u-boot-imx-03f5c55021c2d6297e66cc11bfea75f149a5d71c.tar.gz
u-boot-imx-03f5c55021c2d6297e66cc11bfea75f149a5d71c.tar.bz2
Patches by Jon Loeliger, 24 Aug 2004:
- Add support for the MPC8541 and MPC8555 CDS boards - Cleanup eth?addr handling: make dependent on CONFIG_ETH?ADDR
Diffstat (limited to 'common/cmd_bdinfo.c')
-rw-r--r--common/cmd_bdinfo.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index f678939..c4dacd3 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -79,24 +79,33 @@ int do_bdinfo ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#endif
print_str ("busfreq", strmhz(buf, bd->bi_busfreq));
#endif /* CONFIG_405GP, CONFIG_405CR, CONFIG_405EP, CONFIG_XILINX_ML300 */
+
puts ("ethaddr =");
for (i=0; i<6; ++i) {
printf ("%c%02X", i ? ':' : ' ', bd->bi_enetaddr[i]);
}
-#if (defined CONFIG_PN62) || (defined CONFIG_PPCHAMELEONEVB) || \
- (defined CONFIG_MPC8540ADS) || (defined CONFIG_MPC8560ADS) || \
- (defined CONFIG_MPC8555CDS)
+
+#if defined(CONFIG_ETH1ADDR)
puts ("\neth1addr =");
for (i=0; i<6; ++i) {
printf ("%c%02X", i ? ':' : ' ', bd->bi_enet1addr[i]);
}
-#endif /* CONFIG_PN62 */
-#if defined(CONFIG_MPC8540ADS) || defined(CONFIG_MPC8560ADS) || defined(CONFIG_MPC8555CDS)
+#endif
+
+#if defined(CONFIG_ETH2ADDR)
puts ("\neth2addr =");
for (i=0; i<6; ++i) {
printf ("%c%02X", i ? ':' : ' ', bd->bi_enet2addr[i]);
}
#endif
+
+#if defined(CONFIG_ETH3ADDR)
+ puts ("\neth3addr =");
+ for (i=0; i<6; ++i) {
+ printf ("%c%02X", i ? ':' : ' ', bd->bi_enet3addr[i]);
+ }
+#endif
+
#ifdef CONFIG_HERMES
print_str ("ethspeed", strmhz(buf, bd->bi_ethspeed));
#endif