From 0c852a2886fb51222f8fb07e6cde3b72fa4e566d Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 26 Feb 2004 23:01:04 +0000 Subject: * Patch by Rahul Shanbhag, 19 Feb 2004: Fixes for for OMAP1610 board: - shift some IRQ specific code to platform.S file - remove duplicatewatchdog reset code from start.S * Make Auto-MDIX Support configurable on INCA-IP board * Fix license for mkimage tool --- drivers/inca-ip_sw.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'drivers/inca-ip_sw.c') diff --git a/drivers/inca-ip_sw.c b/drivers/inca-ip_sw.c index c76b344..88bc813 100644 --- a/drivers/inca-ip_sw.c +++ b/drivers/inca-ip_sw.c @@ -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 -- cgit v1.1