[U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x
Ben Warren
bwarren at qstreams.com
Tue Jun 3 07:22:55 CEST 2008
Tsi-Chung.Liew wrote:
> From: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
>
> Signed-off-by: TsiChung Liew <Tsi-Chung.Liew at freescale.com>
> ---
> drivers/net/mcffec.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> 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 */
>
Don't you mean "&= ~0x200"? Negative hex is confusing stuff...
> +#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
>
More information about the U-Boot
mailing list