summaryrefslogtreecommitdiff
path: root/cpu/mpc83xx
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/mpc83xx')
-rw-r--r--cpu/mpc83xx/cpu.c116
1 files changed, 115 insertions, 1 deletions
diff --git a/cpu/mpc83xx/cpu.c b/cpu/mpc83xx/cpu.c
index 8d69d2290..3d3f20a63 100644
--- a/cpu/mpc83xx/cpu.c
+++ b/cpu/mpc83xx/cpu.c
@@ -520,6 +520,15 @@ static const struct {
"local-mac-address",
fdt_set_eth0
},
+#elif CFG_UEC1_UCC_NUM == 1 /* UCC2 */
+ { "/" OF_QE "/ucc@3000",
+ "mac-address",
+ fdt_set_eth0
+ },
+ { "/" OF_QE "/ucc@3000",
+ "local-mac-address",
+ fdt_set_eth0
+ },
#elif CFG_UEC1_UCC_NUM == 2 /* UCC3 */
{ "/" OF_QE "/ucc@2200",
"mac-address",
@@ -529,10 +538,28 @@ static const struct {
"local-mac-address",
fdt_set_eth0
},
+#elif CFG_UEC1_UCC_NUM == 3 /* UCC4 */
+ { "/" OF_QE "/ucc@3200",
+ "mac-address",
+ fdt_set_eth0
+ },
+ { "/" OF_QE "/ucc@3200",
+ "local-mac-address",
+ fdt_set_eth0
+ },
#endif
#endif /* CONFIG_UEC_ETH1 */
#ifdef CONFIG_UEC_ETH2
-#if CFG_UEC2_UCC_NUM == 1 /* UCC2 */
+#if CFG_UEC2_UCC_NUM == 0 /* UCC1 */
+ { "/" OF_QE "/ucc@2000",
+ "mac-address",
+ fdt_set_eth1
+ },
+ { "/" OF_QE "/ucc@2000",
+ "local-mac-address",
+ fdt_set_eth1
+ },
+#elif CFG_UEC2_UCC_NUM == 1 /* UCC2 */
{ "/" OF_QE "/ucc@3000",
"mac-address",
fdt_set_eth1
@@ -541,6 +568,15 @@ static const struct {
"local-mac-address",
fdt_set_eth1
},
+#elif CFG_UEC2_UCC_NUM == 2 /* UCC3 */
+ { "/" OF_QE "/ucc@2200",
+ "mac-address",
+ fdt_set_eth1
+ },
+ { "/" OF_QE "/ucc@2200",
+ "local-mac-address",
+ fdt_set_eth1
+ },
#elif CFG_UEC2_UCC_NUM == 3 /* UCC4 */
{ "/" OF_QE "/ucc@3200",
"mac-address",
@@ -552,6 +588,84 @@ static const struct {
},
#endif
#endif /* CONFIG_UEC_ETH2 */
+#ifdef CONFIG_UEC_ETH3
+#if CFG_UEC3_UCC_NUM == 0 /* UCC1 */
+ { "/" OF_QE "/ucc@2000",
+ "mac-address",
+ fdt_set_eth2
+ },
+ { "/" OF_QE "/ucc@2000",
+ "local-mac-address",
+ fdt_set_eth2
+ },
+#elif CFG_UEC3_UCC_NUM == 1 /* UCC2 */
+ { "/" OF_QE "/ucc@3000",
+ "mac-address",
+ fdt_set_eth2
+ },
+ { "/" OF_QE "/ucc@3000",
+ "local-mac-address",
+ fdt_set_eth2
+ },
+#elif CFG_UEC3_UCC_NUM == 2 /* UCC3 */
+ { "/" OF_QE "/ucc@2200",
+ "mac-address",
+ fdt_set_eth2
+ },
+ { "/" OF_QE "/ucc@2200",
+ "local-mac-address",
+ fdt_set_eth2
+ },
+#elif CFG_UEC3_UCC_NUM == 3 /* UCC4 */
+ { "/" OF_QE "/ucc@3200",
+ "mac-address",
+ fdt_set_eth2
+ },
+ { "/" OF_QE "/ucc@3200",
+ "local-mac-address",
+ fdt_set_eth2
+ },
+#endif
+#endif /* CONFIG_UEC_ETH3 */
+#ifdef CONFIG_UEC_ETH4
+#if CFG_UEC4_UCC_NUM == 0 /* UCC1 */
+ { "/" OF_QE "/ucc@2000",
+ "mac-address",
+ fdt_set_eth3
+ },
+ { "/" OF_QE "/ucc@2000",
+ "local-mac-address",
+ fdt_set_eth3
+ },
+#elif CFG_UEC4_UCC_NUM == 1 /* UCC2 */
+ { "/" OF_QE "/ucc@3000",
+ "mac-address",
+ fdt_set_eth3
+ },
+ { "/" OF_QE "/ucc@3000",
+ "local-mac-address",
+ fdt_set_eth3
+ },
+#elif CFG_UEC4_UCC_NUM == 2 /* UCC3 */
+ { "/" OF_QE "/ucc@2200",
+ "mac-address",
+ fdt_set_eth3
+ },
+ { "/" OF_QE "/ucc@2200",
+ "local-mac-address",
+ fdt_set_eth3
+ },
+#elif CFG_UEC4_UCC_NUM == 3 /* UCC4 */
+ { "/" OF_QE "/ucc@3200",
+ "mac-address",
+ fdt_set_eth3
+ },
+ { "/" OF_QE "/ucc@3200",
+ "local-mac-address",
+ fdt_set_eth3
+ },
+#endif
+#endif /* CONFIG_UEC_ETH4 */
#endif /* CONFIG_QE */
};