From: Sam Song Date: Wed, 7 Mar 2007 17:56:44 +0800 (CST) Subject: [U-Boot-Users] BITBANGMII implementation for MPC8548 eTSEC && 88E1111 In-Reply-To: <1173194526.24846.84.camel@saruman.qstreams.net> Message-ID: <74929.95928.qm@web15906.mail.cnb.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Ben, Ben Warren wrote: > Time to reach into your engineering tool bag. Indead! > controllers, coupling is loose. You should be able to bitbang this > provided the physical wires exist between the CPLD and the PHY. I > guess white-wiring the TSEC's MDC line isn't an option? I did wire two CPLD GPIOs to MDC/MDIO of PHY. > Stylistically, this leaves a lot to be desired, but if register 83 > (better to use hex here) really maps to the MDC and MDIO pins, it > should work. Good catch. I did mistake 0x83 for 83:-( > > Am I on the right track? > > > Before messing with the TSEC driver, try talking with the PHY using > the 'mii' U-boot commands. Also, pull out your oscilloscope and > check that the lines are toggling as you want. Once you're confident > Bitbanged-MII works, integrate it into TSEC. This is really a nice debug method. With it, we found that PHY MDIO output HIGH level was too low - less than 1.5V. So CPLD took it as '0' always. We pulled up it to 3.3V via a resistor and changed CPLD internal bank power supply level as 2.5/1.8V but no luck. Now hardware colleagues help us to work out another way to solve it. As the HIGH-Performance processors comes out, there is an extra workload to debug those broken board besides normal development. No easy to drop it as before. Luckily, u-boot's rich features and the poweful resources make it easier than it should be. Thanks a lot, Sam ___________________________________________________________ ????????-3.5G???20M??? http://cn.mail.yahoo.com