linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* FEC support for 8260 in kernel 2.4.25
@ 2004-04-23 23:23 T Michael Turney
  2004-04-24  0:18 ` Ricardo Scop
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: T Michael Turney @ 2004-04-23 23:23 UTC (permalink / raw)
  To: linuxppc-embedded


Hi Folks,
This is my first posting on this list.

I am working on a kernel port to an 8260 board that
has all three FCCs wired up to PHYs (BCM5221).

The first FCC is working fine, but I haven't been
successful with getting FCC2 and FCC3 going yet.

Is anybody out there successfully using the 2.4.x
fcc_enet.c code with all three channels active?

Cheers,
T.mike

Tools Made Tough
Project Consultant
(o) 760.728.5401
(c) 760.415.8792

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
* RE: FEC support for 8260 in kernel 2.4.25
@ 2004-04-26 18:48 Andrew Williams
  2004-04-28  2:22 ` T Michael Turney
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Williams @ 2004-04-26 18:48 UTC (permalink / raw)
  To: linuxppc-embedded


-- Fourth Attempt.. hoping to have disabled HTML output in Outlook --

Not just the GPIO pins, be sure to note the different
clock sources. (Which in the code is clearly labeled as
"This is board specific", but then goes on to declare
constant values in the common fcc_enet.c file).

  This bothered me enough that I changed the fcc_enet
files from:

#define PC_F1RXCLK      ((uint)0x00000800)
#define PC_F1TXCLK      ((uint)0x00000400)
#define CMX1_CLK_ROUTE  ((uint)0x3e000000)

to

#ifndef PC_F1RXCLK
#define PC_F1RXCLK      ((uint)0x00000800)
#endif
#ifndef PC_F1TXCLK
#define PC_F1TXCLK      ((uint)0x00000400)
#endif
#ifndef CMX1_CLK_ROUTE
#define CMX1_CLK_ROUTE  ((uint)0x3e000000)
#endif

 (repeat for all 3 interfaces)

I know it looks a bit kludgy, but you can now declare board
specific values in your platform/<platform>.h file, and have these
override the current default hard coded values. Furthermore this
change won't break any existing platforms. :o)

One other potential 'gotcha' is if you have different FPSMR values
depending on the interface. The current code (2.4.22) limits you to
a single value that applies to all three interfaces. I worked around
this one, by adding a field to 'fcc_info' for the fpsmr. Then in the
declaration of 'fcc_ports' I once again used conditional
compiles to allow FPSMR values in the platforms file to override
the default FCC_PSMR_ENCRC value.


Andrew

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-04-28  2:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-23 23:23 FEC support for 8260 in kernel 2.4.25 T Michael Turney
2004-04-24  0:18 ` Ricardo Scop
2004-04-24  3:10 ` Dan Malek
2004-04-25  8:32 ` Jaap-Jan Boor
  -- strict thread matches above, loose matches on Subject: below --
2004-04-26 18:48 Andrew Williams
2004-04-28  2:22 ` T Michael Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).