[U-Boot] [PATCH] MII Bus BitBang Imlementation for MPC85xx FCC ports
Luigi 'Comio' Mantellini
luigi.mantellini.ml at gmail.com
Sat Sep 19 17:42:05 CEST 2009
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(-)
More information about the U-Boot
mailing list