u-boot/cpu
Guennadi Liakhovetski d197ffd817 Fix and optimize MII operations on FEC (MPC8xx) controllers
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>
2008-01-09 14:52:04 +01:00
..
74xx_7xx cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
arm720t Fix missing DECLARE_GLOBAL_DATA_PTR on CONFIG_LPC2292 in serial 2007-09-28 01:08:38 +02:00
arm920t s3c24x0: Fix usb_ohci.c missing in Makefile 2007-11-18 21:50:07 +01:00
arm925t [PATCH] omap925.c: Remove unused functions 2006-10-28 17:13:12 +02:00
arm926ejs Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues. 2007-08-12 14:27:39 +02:00
arm946es Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
arm1136 Remove compiler warning: target CPU does not support interworking 2007-09-10 09:26:35 +02:00
arm_intcm Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
at32ap AVR32: Fix wrong pin setup for USART3 2007-12-17 10:35:02 +01:00
bf533 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf537 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf561 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
i386 cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
ixp Coding Style clenaup; update CHANGELOG 2008-01-09 13:43:38 +01:00
lh7a40x Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
mcf52x2 ColdFire: Update cpu flag for 4.2-xx compiler 2007-11-07 17:51:00 -06:00
mcf523x ColdFire: Update cpu flag for 4.2-xx compiler 2007-11-07 17:51:00 -06:00
mcf532x ColdFire: MCF532x - Update do_reset() using core reset 2007-11-07 17:56:15 -06:00
mcf5445x ColdFire: MCF5445x - Update correct RAMBAR and missing linker files 2007-11-07 18:00:54 -06:00
microblaze [PATCH] Add support for design without interrupt controller 2007-09-24 00:21:19 +02:00
mips [MIPS] cpu/mips/config.mk: Fix GNU assembler minor version picker 2007-11-17 20:05:26 +09:00
mpc5xx powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc5xxx Move do_fixup* for libfdt into common code 2007-11-21 14:01:49 -06:00
mpc8xx Fix and optimize MII operations on FEC (MPC8xx) controllers 2008-01-09 14:52:04 +01:00
mpc83xx mpc83xx: convert to using do_fixup_*() 2008-01-08 09:56:42 -06:00
mpc85xx Handle Asynchronous DDR clock on 85xx 2007-12-11 22:34:20 -06:00
mpc86xx Merge commit 'remotes/wd/master' 2007-11-20 14:34:57 -06:00
mpc512x powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc824x powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc8220 powerpc: Backout relocation changes. 2007-11-17 01:38:58 +01:00
mpc8260 Move do_fixup* for libfdt into common code 2007-11-21 14:01:49 -06:00
nios Minor alignment of output, 2nd try. 2007-08-12 21:34:34 +02:00
nios2 cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
ppc4xx Merge branch 'lwmon5-no-ocm' 2008-01-09 10:43:47 +01:00
pxa Fix compiler warnings for ARM systems. 2007-11-18 17:11:09 +01:00
s3c44b0 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
sa1100 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
sh4 Fix coding style issues; update CHANGELOG. 2007-12-27 01:52:50 +01:00