From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4] macb: initial support for Cadence GEM
Date: Thu, 18 Aug 2011 16:03:42 +0200 [thread overview]
Message-ID: <4E4D1BBE.2050001@gmail.com> (raw)
In-Reply-To: <1313674339-1834-2-git-send-email-fovsoft@gmail.com>
Dear Dave Aldrige,
Am 18.08.2011 15:32, schrieb Dave Aldridge:
> The Cadence GEM is based on the MACB Ethernet controller but has a few
> small changes with regards to register and bitfield placement. This
> patch detects the presence of a GEM by reading the module ID register
> and setting a flag appropriately.
>
> This handles the new HW address, USRIO and hash register base register
> locations in GEM.
>
> Signed-off-by: Dave Aldridge <fovsoft@gmail.com>
> ---
> drivers/net/macb.c | 18 +++++++++++-----
> drivers/net/macb.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 67 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/net/macb.c b/drivers/net/macb.c
> index c63eea9..d52dda0 100644
> --- a/drivers/net/macb.c
> +++ b/drivers/net/macb.c
> @@ -88,6 +88,7 @@ struct macb_dma_desc {
>
> struct macb_device {
> void *regs;
> + int is_gem;
is it required to have a runtime distinction here?
I mean is it possible to have a Cadence GEM type and a old style MACB
type of HW on the same device?
If not I would prefer a compile time differentiation here to avoid the
macb_or_gem_(read|write) macros (but lets wait for some comments from
the custodians)
regards
Andreas Bie?mann
next prev parent reply other threads:[~2011-08-18 14:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-18 13:32 [U-Boot] [PATCH 0/4] Add Cadence GEM support to macb Ethernet driver Dave Aldridge
2011-08-18 13:32 ` [U-Boot] [PATCH 1/4] macb: initial support for Cadence GEM Dave Aldridge
2011-08-18 14:03 ` Andreas Bießmann [this message]
2011-08-18 15:26 ` Dave Aldridge
2011-10-06 21:50 ` Wolfgang Denk
2011-08-18 13:32 ` [U-Boot] [PATCH 2/4] macb: support higher rate GEM MDIO clock divisors Dave Aldridge
2011-08-18 13:32 ` [U-Boot] [PATCH 3/4] macb: support DMA bus widths > 32 bits Dave Aldridge
2011-08-18 13:32 ` [U-Boot] [PATCH 4/4] macb: allow GEM to have configurable receive buffer size Dave Aldridge
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=4E4D1BBE.2050001@gmail.com \
--to=andreas.devel@googlemail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.