summaryrefslogtreecommitdiff
path: root/include/configs/stmark2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/stmark2.h')
-rw-r--r--include/configs/stmark2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/configs/stmark2.h b/include/configs/stmark2.h
index a08d9950bd..d6ba1f64f3 100644
--- a/include/configs/stmark2.h
+++ b/include/configs/stmark2.h
@@ -163,4 +163,19 @@
#define CACR_STATUS (CONFIG_SYS_INIT_RAM_ADDR + \
CONFIG_SYS_INIT_RAM_SIZE - 12)
+#ifdef CONFIG_MCFFEC
+#define CONFIG_MII_INIT 1
+#define CONFIG_SYS_DISCOVER_PHY
+#define CONFIG_SYS_RX_ETH_BUFFER 8
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+/* If CONFIG_SYS_DISCOVER_PHY is not defined - hardcoded */
+#ifndef CONFIG_SYS_DISCOVER_PHY
+#define FECDUPLEX FULL
+#define FECSPEED _100BASET
+#else
+#ifndef CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
+#endif
+#endif /* CONFIG_SYS_DISCOVER_PHY */
+#endif
#endif /* __STMARK2_CONFIG_H */