* MPC875 porting
@ 2006-01-29 20:34 dibacco
2006-01-29 21:47 ` Dan Malek
0 siblings, 1 reply; 3+ messages in thread
From: dibacco @ 2006-01-29 20:34 UTC (permalink / raw)
To: linuxppc-embedded
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* MPC875 porting
@ 2006-01-29 20:36 dibacco
0 siblings, 0 replies; 3+ messages in thread
From: dibacco @ 2006-01-29 20:36 UTC (permalink / raw)
To: linuxppc-embedded
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: MPC875 porting
2006-01-29 20:34 MPC875 porting dibacco
@ 2006-01-29 21:47 ` Dan Malek
0 siblings, 0 replies; 3+ messages in thread
From: Dan Malek @ 2006-01-29 21:47 UTC (permalink / raw)
To: dibacco@inwind.it; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-29 21:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-29 20:34 MPC875 porting dibacco
2006-01-29 21:47 ` Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2006-01-29 20:36 dibacco
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).