mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-02-12 19:10:14 +01:00
ColdFire: Add 10 base ethernet support for mcf5445x
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com> Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This commit is contained in:
parent
290ef64368
commit
ff36fbb2e7
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue