mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 07:01:24 +00:00
d197ffd817
This patch fixes several issues at least on a MPC885 based system with two FEC interfaces used in MII mode. 1. PHY discovery should first read PHY_PHYIDR2 register and only then PHY_PHYIDR1 like cpu/mpc8xx/fec.c::mii_discover_phy() does it, otherwise the values read are wrong. Also notice, that PHY discovery cannot work on MPC88x / MPC87x in setups with both FECs active at all in its present form, because for both interfaces the registers from FEC 1 are used to communicate over MII. 2. Remove code duplication for resetting the FEC by isolating it into a separate function. 3. Initialize MII on FEC 1 when communicating over FEC 2 in fec_init(). 4. Optimize mii_init() to only reset the FEC 1 controller once. 5. Fix a typo in mii_init() using index i instead of j thus potentially leading to unpredictable results. Signed-off-by: Guennadi Liakhovetski <lg@denx.de> |
||
---|---|---|
.. | ||
bedbug_860.c | ||
commproc.c | ||
config.mk | ||
cpu.c | ||
cpu_init.c | ||
fec.c | ||
fec.h | ||
i2c.c | ||
interrupts.c | ||
kgdb.S | ||
lcd.c | ||
Makefile | ||
plprcr_write.S | ||
scc.c | ||
serial.c | ||
speed.c | ||
spi.c | ||
start.S | ||
traps.c | ||
upatch.c | ||
video.c | ||
wlkbd.c |