public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Josef Angermeier <Josef.Angermeier@informatik.stud.uni-erlangen.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] cpu/mpc8xx/fec.c MII & RMII code
Date: Tue, 28 Feb 2006 13:36:52 +0100	[thread overview]
Message-ID: <20060228123651.GC4849@false> (raw)

Dear u-boot-users,

i got a little question to the FEC/MII code in cpu/mpc8xx/fec.c. 

As far as i understand it, MII and RMII are just two different protocols
how MPC and network transceiver chip "talk"to each other. So the MPC can
find out the prefered transmission method, duplex or half duplex,
100Mps or 10Mps and setup the FEC accordingly.

Now i don't get, why the speed settings of the transceiver are ignored
unless *both* CONFIG_MII and CONFIG_RMII are set, and why the half/full
speed settings are only of importance if CONFIG_MII alone is set.

Maybe understanding this could help me getting also 100Mps instead of
10Mps to work...  thanks for your advices!

Best regards,
Josef

#if defined(CONFIG_MII) && defined(CONFIG_RMII)

	...

	/*
	 * adapt the RMII speed to the speed of the phy
	 */
	if (miiphy_speed (efis->actual_phy_addr) == _100BASET) {
		fec_100Mbps (dev);
	} else {
		fec_10Mbps (dev);
	}
#endif

#if defined(CONFIG_MII)
	/*
	 * adapt to the half/full speed settings
	 */
	if (miiphy_duplex (efis->actual_phy_addr) == FULL) {
		fec_full_duplex (dev);
	} else {
		fec_half_duplex (dev);
	}
#endif

                 reply	other threads:[~2006-02-28 12:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060228123651.GC4849@false \
    --to=josef.angermeier@informatik.stud.uni-erlangen.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox