public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* fs_enet - support for SCC on CPM2?
@ 2006-09-26  2:19 Matt Hevern
  2006-09-26  8:40 ` Alex Zeffertt
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Hevern @ 2006-09-26  2:19 UTC (permalink / raw)
  To: Linuxppc-embedded

Hi all,

I am trying to compile for an freescale 82xx (CPM2) series processor, 
with ethernet on an SCC. (kernel 2.6.x)
 From what i can see, in the file drivers/net/fs_enet/fs_enet-main.c, 
the config option "CONFIG_FS_ENET_HAS_SCC"  pulls in "fs_scc_ops" which 
are defined in
drivers/net/fs_enet/mac-scc.c, but this file  does not seem to have 
support for 82xx series, failing with various compile errors:
------errors
drivers/net/fs_enet/mac-scc.c: In function `scc_cr_cmd':
drivers/net/fs_enet/mac-scc.c:94: error: `cpm8xx_t' undeclared (first 
use in this function)
drivers/net/fs_enet/mac-scc.c:94: error: (Each undeclared identifier is 
reported only once
drivers/net/fs_enet/mac-scc.c:94: error: for each function it appears in.)
drivers/net/fs_enet/mac-scc.c:94: error: `immap_t' undeclared (first use 
in this function)
...etc
------end-errors

It seems like these errors are mostly due to the driver being tailored 
for 8xx series.

Are there any patches/fixes for "fs_enet" for ethernet on SCC for 82xx 
series?  - or other options?

Thanks in advance.

Matt

^ permalink raw reply	[flat|nested] 4+ messages in thread
* RE: fs_enet - support for SCC on CPM2?
@ 2006-09-26 15:22 Pelton, Dave
  2006-09-26 16:28 ` Vitaly Bordug
  0 siblings, 1 reply; 4+ messages in thread
From: Pelton, Dave @ 2006-09-26 15:22 UTC (permalink / raw)
  To: Matt Hevern; +Cc: Linuxppc-embedded

> -----Original Message-----
> From: Matt Hevern
<snip>
>=20
> I am trying to compile for an freescale 82xx (CPM2) series=20
> processor, with ethernet on an SCC. (kernel 2.6.x)  From what=20
> i can see, in the file drivers/net/fs_enet/fs_enet-main.c,
> the config option "CONFIG_FS_ENET_HAS_SCC"  pulls in=20
> "fs_scc_ops" which are defined in=20
> drivers/net/fs_enet/mac-scc.c, but this file  does not seem=20
> to have support for 82xx series, failing with various compile errors:
<snip>
> It seems like these errors are mostly due to the driver being tailored
for 8xx series.
<snip>

I had the same problem trying to use fs_enet for 82xx SCC Ethernet and
came to the same conclusion.  The FCC could not be used instead of the
SCC because of pin limitations in the hardware design.  I ended up using
the "old" SCC Ethernet driver by disabling CONFIG_FS_ENET_HAS_SCC and
enabling CONFIG_SCC_ENET (Under CPM2 options in kernel config).  This
does not use the new platform bus structure, and arch/ppc/8260_io/enet.c
may require some board specific tweaks, but it does work.

- David Pelton.

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

end of thread, other threads:[~2006-09-26 16:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26  2:19 fs_enet - support for SCC on CPM2? Matt Hevern
2006-09-26  8:40 ` Alex Zeffertt
  -- strict thread matches above, loose matches on Subject: below --
2006-09-26 15:22 Pelton, Dave
2006-09-26 16:28 ` Vitaly Bordug

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox