]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/bcm570x.c
rename CFG_ macros to CONFIG_SYS
[karo-tx-uboot.git] / drivers / net / bcm570x.c
index 5ad31d1fdb6e29145ec4ed7e944f053a89fe1cd8..185764ef5e96b7ab20dd79fd6dc474d5f3bc5fdf 100644 (file)
@@ -6,9 +6,6 @@
 
 #include <common.h>
 
-#if defined(CONFIG_CMD_NET) \
-       && (!defined(CONFIG_NET_MULTI)) && defined(CONFIG_BCM570x)
-
 #ifdef CONFIG_BMW
 #include <mpc824x.h>
 #endif
@@ -442,9 +439,9 @@ int eth_init (bd_t * bis)
        /* Setup timer delays */
        if (T3_ASIC_REV (pDevice->ChipRevId) == T3_ASIC_REV_5701) {
                pDevice->UseTaggedStatus = TRUE;
-               pUmDevice->timer_interval = CFG_HZ;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ;
        } else {
-               pUmDevice->timer_interval = CFG_HZ / 50;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ / 50;
        }
 
        /* Grab name .... */
@@ -461,15 +458,15 @@ int eth_init (bd_t * bis)
        pUmDevice->rx_last_cnt = pUmDevice->tx_last_cnt = 0;
 
        /* delay for 4 seconds */
-       pUmDevice->delayed_link_ind = (4 * CFG_HZ) / pUmDevice->timer_interval;
+       pUmDevice->delayed_link_ind = (4 * CONFIG_SYS_HZ) / pUmDevice->timer_interval;
 
-       pUmDevice->adaptive_expiry = CFG_HZ / pUmDevice->timer_interval;
+       pUmDevice->adaptive_expiry = CONFIG_SYS_HZ / pUmDevice->timer_interval;
 
        /* Sometimes we get spurious ints. after reset when link is down. */
        /* This field tells the isr to service the int. even if there is */
        /* no status block update. */
        pUmDevice->adapter_just_inited =
-           (3 * CFG_HZ) / pUmDevice->timer_interval;
+           (3 * CONFIG_SYS_HZ) / pUmDevice->timer_interval;
 
        /* Initialize 570x */
        if (LM_InitializeAdapter (pDevice) != LM_STATUS_SUCCESS) {
@@ -1049,9 +1046,9 @@ LM_STATUS MM_GetConfig (PLM_DEVICE_BLOCK pDevice)
 
        if (T3_ASIC_REV (pDevice->ChipRevId) == T3_ASIC_REV_5701) {
                pDevice->UseTaggedStatus = TRUE;
-               pUmDevice->timer_interval = CFG_HZ;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ;
        } else {
-               pUmDevice->timer_interval = CFG_HZ / 50;
+               pUmDevice->timer_interval = CONFIG_SYS_HZ / 50;
        }
 
        pDevice->TxPacketDescCnt = tx_pkt_desc_cnt[index];
@@ -1599,5 +1596,3 @@ PQQ_ENTRY QQ_GetTail (PQQ_CONTAINER pQueue, unsigned int Idx)
 
        return pQueue->Array[Idx];
 }
-
-#endif