From: Jeff Garzik <jgarzik@pobox.com>
To: eric miao <eric.y.miao@gmail.com>
Cc: netdev@vger.kernel.org, Nicolas Pitre <nico@cam.org>
Subject: Re: [PATCH] add support for smc91x ethernet interface on zylonite
Date: Tue, 06 Nov 2007 12:41:27 -0500 [thread overview]
Message-ID: <4730A747.8050601@pobox.com> (raw)
In-Reply-To: <f17812d70711051645p4d1a8e44mbc21413cc6ef12ba@mail.gmail.com>
eric miao wrote:
>>From 9363662844b6373ddf4265e7007eb29ff963a377 Mon Sep 17 00:00:00 2001
> From: eric miao <eric.miao@marvell.com>
> Date: Tue, 30 Oct 2007 09:48:41 +0800
> Subject: [PATCH] add support for smc91x ethernet interface on zylonite
>
> This patch adds LAN91C111 ethernet interface support for zylonite
> (a.k.a Marvell's PXA3xx Development Platform) with smc91x driver.
>
> It would be better if a patch would support zylonite along with all
> other PXA boards with a single binary of smc91x driver, but it looks
> quite difficult for the moment, so ugly #ifdef is still used here.
>
> Signed-off-by: Aleksey Makarov <amakarov@ru.mvista.com>
> Acked-by: eric miao <eric.miao@marvell.com>
> ---
> drivers/net/smc91x.h | 15 +++++++++++++++
> 1 files changed, 15 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h
> index 729fd28..db34e1e 100644
> --- a/drivers/net/smc91x.h
> +++ b/drivers/net/smc91x.h
> @@ -224,6 +224,21 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
> }
> }
>
> +#elif defined(CONFIG_MACH_ZYLONITE)
> +
> +#define SMC_CAN_USE_8BIT 1
> +#define SMC_CAN_USE_16BIT 1
> +#define SMC_CAN_USE_32BIT 0
> +#define SMC_IO_SHIFT 0
> +#define SMC_NOWAIT 1
> +#define SMC_USE_PXA_DMA 1
> +#define SMC_inb(a, r) readb((a) + (r))
> +#define SMC_inw(a, r) readw((a) + (r))
> +#define SMC_insw(a, r, p, l) insw((a) + (r), p, l)
> +#define SMC_outsw(a, r, p, l) outsw((a) + (r), p, l)
> +#define SMC_outb(v, a, r) writeb(v, (a) + (r))
> +#define SMC_outw(v, a, r) writew(v, (a) + (r))
> +
> #elif defined(CONFIG_ARCH_OMAP)
applied
prev parent reply other threads:[~2007-11-06 17:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-06 0:45 [PATCH] add support for smc91x ethernet interface on zylonite eric miao
2007-11-06 3:37 ` Nicolas Pitre
2007-11-06 17:41 ` Jeff Garzik [this message]
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=4730A747.8050601@pobox.com \
--to=jgarzik@pobox.com \
--cc=eric.y.miao@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=nico@cam.org \
/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;
as well as URLs for NNTP newsgroup(s).