fs_enet - support for SCC on CPM2?

Vitaly Bordug vbordug at ru.mvista.com
Wed Sep 27 02:28:46 EST 2006


On Tue, 26 Sep 2006 11:22:30 -0400
"Pelton, Dave" <dpelton at ciena.com> wrote:

> > -----Original Message-----
> > From: Matt Hevern
> <snip>
> > 
> > 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:
> <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.
> 

Scc Ethernet on 82xx was not supported because the hardware it was developed on 
did not support such an option at all.

That was the reason why scc_enet is "tailored" for 8xx. If there is a desire and HW to
make it work, please go ahead, I'll assist as per time permits, and make sure the stuff 
will be merged upstream.

Obsoleted things like 8260_io may disappear sooner or later (I bet sooner is more probably...)

-- 
Sincerely, 
Vitaly



More information about the Linuxppc-embedded mailing list