]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - cpu/mcf532x/cpu.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / cpu / mcf532x / cpu.c
index 61541ab0f15fbbeaf2abdb22ba674c1ba6566341..8c496a2a2ae4e6b44862d307cda69dfd8802c936 100644 (file)
@@ -28,6 +28,7 @@
 #include <common.h>
 #include <watchdog.h>
 #include <command.h>
+#include <netdev.h>
 
 #include <asm/immap.h>
 
@@ -116,7 +117,7 @@ int watchdog_init(void)
        u32 wdog_module = 0;
 
        /* set timeout and enable watchdog */
-       wdog_module = ((CFG_CLK / 1000) * CONFIG_WATCHDOG_TIMEOUT);
+       wdog_module = ((CONFIG_SYS_CLK / 1000) * CONFIG_WATCHDOG_TIMEOUT);
 #ifdef CONFIG_M5329
        wdp->mr = (wdog_module / 8192);
 #else
@@ -129,3 +130,15 @@ int watchdog_init(void)
        return (0);
 }
 #endif                         /* CONFIG_WATCHDOG */
+
+#if defined(CONFIG_MCFFEC)
+/* Default initializations for MCFFEC controllers.  To override,
+ * create a board-specific function called:
+ *     int board_eth_init(bd_t *bis)
+ */
+
+int cpu_eth_init(bd_t *bis)
+{
+       return mcffec_initialize(bis);
+}
+#endif