From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Mon, 14 Jan 2008 16:11:53 -0500 Subject: [U-Boot-Users] [PATCH 6/8] ColdFire: Add MCF547x_8x FEC driver In-Reply-To: <4791E710007FEB4BBF83775D787F462F05CC68B0@az33exm22.fsl.freescale.net> References: <1200105508.22560.4.camel@Goku> <47882FB8.8060405@gmail.com> <4791E710007FEB4BBF83775D787F462F05CC68B0@az33exm22.fsl.freescale.net> Message-ID: <478BD019.3090404@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Liew Tsi Chung wrote: > Ben, > > Yes. I agree the function name is not very descriptive. Will > mcdmafec_initialize() work (mcdma - multi-channel dma)? I can't name it > specific to coldfire, because this driver will also work on MPC8220. > > Regards, > TsiChung > > > Sure, that's better. >> diff --git a/net/eth.c b/net/eth.c >> index 5d9e9c1..fd3dc85 100644 >> --- a/net/eth.c >> +++ b/net/eth.c >> @@ -61,6 +61,7 @@ extern int uec_initialize(int); extern int >> bfin_EMAC_initialize(bd_t *); extern int >> atstk1000_eth_initialize(bd_t *); extern int >> mcffec_initialize(bd_t*); >> +extern int fecdma_initialize(bd_t*); >> >> > > Can you pick a more descriptive name than fecdma, please. At the very > least it should be mcffecdma so we know it's Coldfire. > > >> >> #ifdef CONFIG_API >> extern void (*push_packet)(volatile void *, int); @@ -272,6 +273,9 @@ >> > > >> int eth_initialize(bd_t *bis) #if defined(CONFIG_MCFFEC) >> mcffec_initialize(bis); >> #endif >> +#if defined(CONFIG_FSLDMAFEC) >> + fecdma_initialize(bis); >> +#endif >> >> if (!eth_devices) { >> puts ("No ethernet found.\n"); >> >> > > >