From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Gbe Controller driver support for kirkwood SOCs
Date: Fri, 03 Apr 2009 12:14:18 -0700 [thread overview]
Message-ID: <49D6600A.5060300@gmail.com> (raw)
In-Reply-To: <1238798370-9245-3-git-send-email-prafulla@marvell.com>
Prafulla Wadaskar wrote:
> From: prafulla_wadaskar <prafulla@marvell.com>
>
> Contributors:
> Yotam Admon <yotam@marvell.com>
> Michael Blostein <michaelbl@marvell.com
>
> Signed-off-by: prafulla_wadaskar <prafulla@marvell.com>
> Reviewed by: Ronen Shitrit <rshitrit@marvell.com>
> ---
>
<snip>
> diff --git a/net/eth.c b/net/eth.c
> index 4bbf84b..77fa8a5 100644
> --- a/net/eth.c
> +++ b/net/eth.c
> @@ -73,6 +73,7 @@ int board_eth_init(bd_t *bis) __attribute((weak, alias("__def_eth_init")));
>
> extern int mv6436x_eth_initialize(bd_t *);
> extern int mv6446x_eth_initialize(bd_t *);
> +extern int kirkwood_egiga_initialize(bd_t*);
>
> #ifdef CONFIG_API
> extern void (*push_packet)(volatile void *, int);
> @@ -205,6 +206,9 @@ int eth_initialize(bd_t *bis)
> #if defined(CONFIG_DB64460) || defined(CONFIG_P3Mx)
> mv6446x_eth_initialize(bis);
> #endif
> +#ifdef CONFIG_KIRKWOOD_EGIGA
> + kirkwood_egiga_initialize(bis);
> +#endif
> if (!eth_devices) {
> puts ("No ethernet found.\n");
> show_boot_progress (-64);
>
I believe Mike mentioned this already, but you shouldn't be initializing
your drivers here. You'll notice that this area of code is much smaller
than it used to be, and the only drivers left are Marvell ones. I
started cleaning them up, but the work was huge and lacking hardware I
was nervous about breaking things. IIRC, the MV6436X and MV6446X
drivers duplicate code > 99%.
regards,
Ben
next prev parent reply other threads:[~2009-04-03 19:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-03 22:39 [U-Boot] [PATCH] Marvell Feroceon-FR131/Sheeva-88SV131 cpu core support Prafulla Wadaskar
2009-04-03 18:21 ` Wolfgang Denk
2009-04-03 22:39 ` [U-Boot] [PATCH] Marvell Kirkwood family SOC support Prafulla Wadaskar
2009-04-03 19:15 ` Wolfgang Denk
2009-04-03 22:39 ` [U-Boot] [PATCH] Gbe Controller driver support for kirkwood SOCs Prafulla Wadaskar
2009-04-03 18:02 ` Mike Frysinger
2009-04-03 19:14 ` Ben Warren [this message]
2009-04-06 11:44 ` Prafulla Wadaskar
2009-04-03 19:46 ` Wolfgang Denk
2009-04-03 22:39 ` [U-Boot] [PATCH] Marvell 88EXXXX Switch/PHY init support Prafulla Wadaskar
2009-04-03 17:33 ` Ben Warren
2009-04-03 19:32 ` Wolfgang Denk
2009-04-03 22:39 ` [U-Boot] [PATCH] Marvell MV88F6281GTW_GE Board support Prafulla Wadaskar
2009-04-03 18:42 ` Wolfgang Denk
2009-05-20 22:50 ` [U-Boot] [PATCH] Marvell 88EXXXX Switch/PHY init support Sergey Nikulov
2009-05-21 6:15 ` Prafulla Wadaskar
2009-05-21 6:31 ` Sergey Nikulov
2009-05-21 6:37 ` Prafulla Wadaskar
2009-04-04 16:24 ` [U-Boot] [PATCH] Marvell Kirkwood family SOC support Jean-Christophe PLAGNIOL-VILLARD
2009-04-07 11:01 ` Prafulla Wadaskar
2009-04-04 16:16 ` [U-Boot] [PATCH] Marvell Feroceon-FR131/Sheeva-88SV131 cpu core support Jean-Christophe PLAGNIOL-VILLARD
2009-04-07 10:05 ` Prafulla Wadaskar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D6600A.5060300@gmail.com \
--to=biggerbadderben@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox