From: Luigi 'Comio' Mantellini Date: Sat, 19 Sep 2009 17:39:36 +0200 Subject: [U-Boot] [PATCH] MII Bus BitBang Imlementation for MPC85xx FCC ports Message-ID: <1253374777-27742-1-git-send-email-luigi.mantellini@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Luigi 'Comio' Mantellini This patch add a MII Bus support for FCC port using a simple bitbang implementation (derived from miiphy driver). In order to enable mii bus, you need to define the following additional macros: CONFIG_MPC85XX_BITBANGMII - Enable the mii bus support code CONFIG_SYS_FCC1_MDIO - Pin used for MDIO signal CONFIG_SYS_FCC2_MDIO CONFIG_SYS_FCC3_MDIO CONFIG_SYS_FCC1_MDC - Pin used for MDC signal CONFIG_SYS_FCC2_MDC CONFIG_SYS_FCC3_MDC CONFIG_SYS_FCC1_PHYADDR - Phy address CONFIG_SYS_FCC2_PHYADDR CONFIG_SYS_FCC3_PHYADDR Notice that all Pins are refered to the Parallel IO Ports (A, B, C, D). The pin number is gived by the following formula: AbsIoPin# = (Port#) * 32 + IoPin# where: Port# is 0 for port A, 1 for port B, etc... IoPin# is the pin is a value from 0 to 31 refered to the port AbsIoPin# is the value request bt *_MDIO and *_MDC macros. Any feedback is welcome. best regards, luigi Luigi 'Comio' Mantellini (1): [OLT] Add MII bus implementation for FCC ports (using bitbanging) cpu/mpc85xx/ether_fcc.c | 400 ++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 379 insertions(+), 21 deletions(-)