]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/keymile/common/ivm.c
powerpc/83xx/km: add MV88E6122 switch support for kmvect1
[people/ms/u-boot.git] / board / keymile / common / ivm.c
index d568fd9def5eb8a729dac60fbd7ca39cb3e8f4f7..22d525602a96bc2e1e09da2612cfbb426d235f67 100644 (file)
@@ -233,7 +233,13 @@ static int ivm_analyze_block2(unsigned char *buf, int len)
        if (getenv("ethaddr") == NULL)
                setenv((char *)"ethaddr", (char *)valbuf);
 #endif
-
+#ifdef CONFIG_KMVECT1
+/* KMVECT1 has two ethernet interfaces */
+       if (getenv("eth1addr") == NULL) {
+               calculate_mac_offset(buf, valbuf, 1);
+               setenv((char *)"eth1addr", (char *)valbuf);
+       }
+#endif
        /* IVM_MacCount */
        count = (buf[10] << 24) +
                   (buf[11] << 16) +