MPC875 porting

2 messages, 2 authors, 2006-01-29 · open the first message on its own page

MPC875 porting

From: dibacco@inwind.it <hidden>
Date: 2006-01-29 20:42:40

I have a custom board with a MPC875 and two ethernet ports. I think I nee=
d to modify the enet.c to have two ethernet ports working. What happens i=
f I define both
CONFIG_SCC1_ENET and CONFIG_SCC2_ENET ? I saw in enet.c the following cod=
e:

#if defined(CONFIG_SCC3_ENET)
#define CPM_CR_ENET	CPM_CR_CH_SCC3
#define PROFF_ENET	PROFF_SCC3
#define SCC_ENET	2		/* Index, not number! */
#define CPMVEC_ENET	CPMVEC_SCC3
#elif defined(CONFIG_SCC2_ENET)
#define CPM_CR_ENET	CPM_CR_CH_SCC2
#define PROFF_ENET	PROFF_SCC2
#define SCC_ENET	1		/* Index, not number! */
#define CPMVEC_ENET	CPMVEC_SCC2
#elif defined(CONFIG_SCC1_ENET)
#define CPM_CR_ENET	CPM_CR_CH_SCC1
#define PROFF_ENET	PROFF_SCC1
#define SCC_ENET	0		/* Index, not number! */
#define CPMVEC_ENET	CPMVEC_SCC1
#else
#error CONFIG_SCCx_ENET not defined
#endif

The point is that there is and elif here, only the SCC1 will work then, I=
'm confused!

Thank you for your help!

Bye.

Re: MPC875 porting

From: Dan Malek <hidden>
Date: 2006-01-29 21:54:34

On Jan 29, 2006, at 3:34 PM, dibacco@@inwind..it wrote:
I have a custom board with a MPC875 and two ethernet ports. I think I 
need to modify the enet.c to have two ethernet ports working.
Please read the archives and use the new drivers/net/fs_net
driver and the new serial port drivers.  This has all been updated
and should just work for you.

Thanks.

	-- Dan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help