diff options
author | wdenk <wdenk> | 2004-07-11 19:17:20 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-11 19:17:20 +0000 |
commit | 6c7a14084ae5f7dde3819e4ab43fd78ea82805fe (patch) | |
tree | 74714dc85f5b74ed34b2f742fa3de6d52e5446b4 /cpu/mpc5xxx/fec.c | |
parent | bc54f309a1f274226ed0f938e2a09fc2fd9f9701 (diff) | |
download | bootable_bootloader_goldelico_gta04-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.zip bootable_bootloader_goldelico_gta04-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.tar.gz bootable_bootloader_goldelico_gta04-6c7a14084ae5f7dde3819e4ab43fd78ea82805fe.tar.bz2 |
Patch by Mark Jonas, 01 Jul 2004:
Added support for Total5100 and Total5200 (Rev.1 and Rev.2)
MGT5100 and MPC5200 based Freescale platforms.
Diffstat (limited to 'cpu/mpc5xxx/fec.c')
-rw-r--r-- | cpu/mpc5xxx/fec.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/mpc5xxx/fec.c b/cpu/mpc5xxx/fec.c index e3e8065..81b932c 100644 --- a/cpu/mpc5xxx/fec.c +++ b/cpu/mpc5xxx/fec.c @@ -397,7 +397,13 @@ static int mpc5xxx_fec_init_phy(struct eth_device *dev, bd_t * bis) */ if (fec->xcv_type == SEVENWIRE) { /* 10MBit with 7-wire operation */ +#if defined(CONFIG_TOTAL5200) + /* 7-wire and USB2 on Ethernet */ + *(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= 0x00030000; +#else /* !CONFIG_TOTAL5200 */ + /* 7-wire only */ *(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= 0x00020000; +#endif /* CONFIG_TOTAL5200 */ } else { /* 100MBit with MD operation */ *(vu_long *)MPC5XXX_GPS_PORT_CONFIG |= 0x00050000; @@ -870,6 +876,8 @@ int mpc5xxx_fec_initialize(bd_t * bis) # else fec->xcv_type = MII10; # endif +#elif defined(CONFIG_TOTAL5200) + fec->xcv_type = SEVENWIRE; #else #error fec->xcv_type not initialized. #endif |