* [U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x
@ 2008-05-28 18:06 Tsi-Chung.Liew
2008-06-03 5:22 ` Ben Warren
0 siblings, 1 reply; 3+ messages in thread
From: Tsi-Chung.Liew @ 2008-05-28 18:06 UTC (permalink / raw)
To: u-boot
From: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@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 */
+#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
--
1.5.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x
2008-05-28 18:06 [U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x Tsi-Chung.Liew
@ 2008-06-03 5:22 ` Ben Warren
2008-06-03 5:35 ` Ben Warren
0 siblings, 1 reply; 3+ messages in thread
From: Ben Warren @ 2008-06-03 5:22 UTC (permalink / raw)
To: u-boot
Tsi-Chung.Liew wrote:
> From: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
>
> Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x
2008-06-03 5:22 ` Ben Warren
@ 2008-06-03 5:35 ` Ben Warren
0 siblings, 0 replies; 3+ messages in thread
From: Ben Warren @ 2008-06-03 5:35 UTC (permalink / raw)
To: u-boot
Ben Warren wrote:
> Tsi-Chung.Liew wrote:
>
>> From: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
>>
>> Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@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...
>
Never mind... Thunderbird is displaying tildes as hyphens.
>> +#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
>>
>>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-06-03 5:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 18:06 [U-Boot-Users] [PATCH] ColdFire: Add 10 base ethernet support for mcf5445x Tsi-Chung.Liew
2008-06-03 5:22 ` Ben Warren
2008-06-03 5:35 ` Ben Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox