From ff36fbb2e7583fb808eef773f511489c7a9c2df3 Mon Sep 17 00:00:00 2001 From: TsiChung Liew Date: Wed, 28 May 2008 13:06:25 -0500 Subject: ColdFire: Add 10 base ethernet support for mcf5445x Signed-off-by: TsiChung Liew Signed-off-by: Ben Warren --- drivers/net/mcffec.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/net/mcffec.c') diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 5ab4726..8d4e248 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -125,11 +125,17 @@ void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd) } if ((dup_spd & 0xFFFF) == _100BASET) { +#ifdef CONFIG_MCF5445x + fecp->rcr &= ~0x200; /* disabled 10T base */ +#endif #ifdef MII_DEBUG printf("100Mbps\n"); #endif bd->bi_ethspeed = 100; } else { +#ifdef CONFIG_MCF5445x + fecp->rcr |= 0x200; /* enabled 10T base */ +#endif #ifdef MII_DEBUG printf("10Mbps\n"); #endif -- cgit v1.1 From 3b904ccb93c3196727e2e9870cb1df903cab19ad Mon Sep 17 00:00:00 2001 From: Shinya Kuribayashi Date: Mon, 9 Jun 2008 23:37:44 +0900 Subject: net: Conditional COBJS inclusion of network drivers Replace COBJS-y with appropriate driver config names. Signed-off-by: Shinya Kuribayashi Signed-off-by: Ben Warren --- drivers/net/mcffec.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers/net/mcffec.c') diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 8d4e248..58ed5e3 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -27,8 +27,6 @@ #include #include -#ifdef CONFIG_MCFFEC - #include #include @@ -51,8 +49,6 @@ DECLARE_GLOBAL_DATA_PTR; -#if defined(CONFIG_CMD_NET) && defined(CONFIG_NET_MULTI) - struct fec_info_s fec_info[] = { #ifdef CFG_FEC0_IOBASE { @@ -605,6 +601,3 @@ int mcffec_initialize(bd_t * bis) return 1; } - -#endif /* CONFIG_CMD_NET, FEC_ENET & NET_MULTI */ -#endif /* CONFIG_MCFFEC */ -- cgit v1.1