* 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 2:19 fs_enet - support for SCC on CPM2? Matt Hevern
@ 2006-09-26 8:40 ` Alex Zeffertt
0 siblings, 0 replies; 4+ messages in thread
From: Alex Zeffertt @ 2006-09-26 8:40 UTC (permalink / raw)
To: Matt Hevern; +Cc: Linuxppc-embedded
Matt Hevern wrote:
>
> Are there any patches/fixes for "fs_enet" for ethernet on SCC for 82xx
> series? - or other options?
>
Are you sure this is what you want to do? Why not use one of the FCCs for
ethernet?
Alex
^ 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
* Re: fs_enet - support for SCC on CPM2?
2006-09-26 15:22 Pelton, Dave
@ 2006-09-26 16:28 ` Vitaly Bordug
0 siblings, 0 replies; 4+ messages in thread
From: Vitaly Bordug @ 2006-09-26 16:28 UTC (permalink / raw)
To: Pelton, Dave; +Cc: Linuxppc-embedded
On Tue, 26 Sep 2006 11:22:30 -0400
"Pelton, Dave" <dpelton@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
^ 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