All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Bartusek <pba@sysgo.de>
To: Dan Malek <dan@embeddededge.com>
Cc: Jean-Denis Boyer <jdboyer@mediatrix.com>,
	linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: MDIO clock speed computation
Date: Tue, 23 Jul 2002 12:22:01 +0200	[thread overview]
Message-ID: <3D3D2E49.8000309@sysgo.de> (raw)
In-Reply-To: 3D3C6233.3090007@embeddededge.com


Dan Malek wrote:

> The MII clock is not derived from the core speed, but rather the
> system/bus clock speed.  Up to this point, I don't believe there are
> any 8xx parts that are qualified to run beyond a 50 MHz CPU/bus
> speed, so the software is just fine.  If you are running something
> faster than a 50 MHz bus, you may want to look into this.


I thing that system clock and bus clock can be different (in terminology
of the MPC855T user manual)

MPC855T manual, section Clocks and Power Control:
"
GCLK1C/GCLK2C - Basic clocks supplied to the core, the data and
instruction caches, and MMUs.
GCLK1_50/GCLK2_50 - Optionally divided versions of GCLK1/GCLK2, which
are used to clock the GPCM and UPM in the memory controller and to
provide the CLKOUT output for the external bus.
.
.
.
 - General system clocks GCLK1C, GCLK2C, GCLK1, GCLK2
  - Memory controller and external bus clocks GCLK1_50, GCLK2_50
.
.
The MPC855T provides the capability to run the external bus and memory
controller at a lower frequency than the internal modules. This
capability is provided by the external bus frequency dividers. The
external bus clocks GCLK1_50 and GCLK2_50 are derived from GCLK1 and
GCLK2, as determined by the SCCR[EBDF].
"


MPC855T manual, MII_SPEED register:
"MII_SPEED controls the frequency of the MII management interface clock
(MDC) relative to system clock."

Jean-Denis Boyer wrote:

>> Since the divisor is 2 * MDCLOCK,
>> I would suggest something like:
>>
>>   (((bd->bi_intfreq + (2 * 2500000 - 1 )) / 2500000 / 2) & 0x3F) << 1;
>
OK. It is more correct.


--

----------------------------------------------------------------------
|                          Pavel Bartusek                            |
|                                                                    |
| Sysgo RTS GmbH,                     phone: +49 (0) 6136 9948-722   |
| Am Pfaffenstein 14                  fax:   +49 (0) 6136 9948-10    |
| D-55270 Klein-Winternheim           email: pba@sysgo.de            |
| Germany                                                            |
|                                                                    |
|       http://www.sysgo.de           http://www.elinos.com          |
|                                                                    |
----------------------------------------------------------------------


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2002-07-23 10:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-22 18:19 MDIO clock speed computation Jean-Denis Boyer
2002-07-22 19:51 ` Dan Malek
2002-07-22 20:12   ` Dan Malek
2002-07-22 20:15   ` Wolfgang Denk
2002-07-23 10:22   ` Pavel Bartusek [this message]
2002-07-23 15:01     ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2002-07-23 19:41 Jean-Denis Boyer
2002-07-24  7:38 ` Pavel Bartusek
2002-07-23 15:47 Jean-Denis Boyer
2002-07-23 17:34 ` Dan Malek
2002-07-22 20:54 Jean-Denis Boyer
2002-07-22 17:19 Pavel Bartusek

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=3D3D2E49.8000309@sysgo.de \
    --to=pba@sysgo.de \
    --cc=dan@embeddededge.com \
    --cc=jdboyer@mediatrix.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.