linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Help initialize phy-less ethernet in 2.6.38
@ 2012-03-28 16:13 Fabio
  2012-03-29 18:35 ` Scott Wood
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio @ 2012-03-28 16:13 UTC (permalink / raw)
  To: linuxppc-dev

Hi all,
I am a newbie trying to get the FCC1 ethernet interface to work on a
custom board.
The hardware used is based on mpc8270 which is connected via FCC1 to a
phy-less interface linked to another microcontroller.
FCC1 should be recognized as eth0 by the linux kernel and it should
receive data when set up in promiscuous mode.
Currently during the boot it seems that the device initialization goes
ok but I can't understand why I can't receive data when I put the
interface in promiscuous mode.
Going into details I can see that the fs_enet probe function gets called.
I customized it to setup the fs_platform_info structure using the
values taken from the old kernel driver for now.
The only fields I cannot setup are the bus_id,phy_irq,phy_addr because
they are not part of the fs_platform_info data structure anymore.
I can't see any errors during the initialization, but I can't receive
data on the interface.

I think the problem can be in an interrupt misconfiguration but I
haven't figured out how to configure the ethernet dts part in the
right way or how to handle the phy-less situation correctly.


--- dts snippet ---
			eth0: ethernet@11300 {
				device_type = "network";
				compatible =  "fsl,cpm2-fcc-enet";
				reg = <0x11300 0x20 0x8400 0x100 0x11390 0x1>;
				local-mac-address = [ 00 01 02 03 04 05 ];
				interrupts = <32 8>;
				interrupt-parent = <&PIC>;
				linux,network-index = <0>;
				fsl,cpm-command = <0x12000300>;
			};
---

Thanks in advance,



-- 
Fabio Pozzi

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

end of thread, other threads:[~2012-04-03 11:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28 16:13 Help initialize phy-less ethernet in 2.6.38 Fabio
2012-03-29 18:35 ` Scott Wood
2012-03-29 19:56   ` Fabio
2012-03-29 20:30     ` Scott Wood
2012-04-03 11:04       ` Fabio

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).