summaryrefslogtreecommitdiff
path: root/board/keymile/common
diff options
context:
space:
mode:
authorKarlheinz Jerg <karlheinz.jerg@keymile.com>2013-01-21 03:55:18 +0000
committerKim Phillips <kim.phillips@freescale.com>2013-02-15 17:47:20 -0600
commit5bcd64cf5c5510365a14d11043033eb7b6144ead (patch)
treec435d14f6deb3b6a9b25b12c4c812bf3a635dcf4 /board/keymile/common
parent322bb2056ba90d55603f081ae57a652a06357bac (diff)
downloadu-boot-imx-5bcd64cf5c5510365a14d11043033eb7b6144ead.zip
u-boot-imx-5bcd64cf5c5510365a14d11043033eb7b6144ead.tar.gz
u-boot-imx-5bcd64cf5c5510365a14d11043033eb7b6144ead.tar.bz2
powerpc/83xx/km: add MV88E6122 switch support for kmvect1
kmvect1 has a UEC2 connection to the piggy board and a UEC0 connection to the switch MV88E6122. This switch has a connection to a frontport ethernet interface. The ethernet port used for network booting is automatically selected by u-boot. If a Piggy is plugged, the Piggy port is selected (UEC2, eth1). If the Piggy isn't present, the Frontport is selected (UEC0, eth0). The switch reset is connected to a GPIO on the PRIO3 board FPGA (GPIO28) and released at startup. Signed-off-by: Karlheinz Jerg <karlheinz.jerg@keymile.com> Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Diffstat (limited to 'board/keymile/common')
-rw-r--r--board/keymile/common/ivm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/board/keymile/common/ivm.c b/board/keymile/common/ivm.c
index d568fd9..22d5256 100644
--- a/board/keymile/common/ivm.c
+++ b/board/keymile/common/ivm.c
@@ -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) +