]> git.sur5r.net Git - u-boot/blobdiff - drivers/inca-ip_sw.c
* Patch by Rahul Shanbhag, 19 Feb 2004:
[u-boot] / drivers / inca-ip_sw.c
index c76b34495ca8dfcdb0e75bac63a693095f3466ea..88bc813213c687aee442ec1c6706c40817514bd7 100644 (file)
@@ -174,7 +174,9 @@ int inca_switch_initialize(bd_t * bis)
 
        inca_init_switch_chip();
 
+#if defined(CONFIG_INCA_IP_SWITCH_AMDIX)
        inca_amdix();
+#endif
 
        sprintf(dev->name, "INCA-IP Switch");
        dev->init = inca_switch_init;
@@ -623,6 +625,7 @@ static void inca_dma_init(void)
        DMA_WRITE_REG(INCA_IP_DMA_DMA_RXISR, 0xFFFFFFFF);
 }
 
+#if defined(CONFIG_INCA_IP_SWITCH_AMDIX)
 static int inca_amdix(void)
 {
        u32 regValue = 0;
@@ -706,5 +709,6 @@ static int inca_amdix(void)
 
        return 0;
 }
+#endif /* CONFIG_INCA_IP_SWITCH_AMDIX */
 
 #endif