mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lennert Buytenhek <buytenh@wantstofly.org>
To: Dmytro Milinevskyy <milinevskyy@gmail.com>
Cc: linux-arm-kernel@lists.infradead.org,
	Russell King <linux@arm.linux.org.uk>,
	Dhaval Vasa <dhaval.vasa@einfochips.com>,
	Nicolas Pitre <nico@fluxnic.net>,
	Simon Guinot <sguinot@lacie.com>,
	Martin Michlmayr <tbm@cyrius.com>,
	Alexander Clouter <alex@digriz.org.uk>,
	Simon Kagstrom <simon.kagstrom@netinsight.net>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Marvell OpenRD-Ultimate machine support
Date: Tue, 8 Jun 2010 19:45:36 +0200	[thread overview]
Message-ID: <20100608174536.GW1743@mail.wantstofly.org> (raw)
In-Reply-To: <4c0e7d5a.0c3ddf0a.2771.ffffd485@mx.google.com>

On Tue, Jun 08, 2010 at 08:24:40PM +0300, Dmytro Milinevskyy wrote:

> diff --git a/arch/arm/mach-kirkwood/openrd-setup.c b/arch/arm/mach-kirkwood/openrd-setup.c
> index ad3f1ec..5d6797a 100644
> --- a/arch/arm/mach-kirkwood/openrd-setup.c
> +++ b/arch/arm/mach-kirkwood/openrd-setup.c
> @@ -47,6 +47,14 @@ static struct mv643xx_eth_platform_data openrd_ge01_data = {
>  	.phy_addr	= MV643XX_ETH_PHY_ADDR(24),
>  };
>  
> +static struct mv643xx_eth_platform_data openrd_ultimate_ge00_data = {
> +	.phy_addr	= MV643XX_ETH_PHY_ADDR(0),
> +};
> +
> +static struct mv643xx_eth_platform_data openrd_ultimate_ge01_data = {
> +	.phy_addr	= MV643XX_ETH_PHY_ADDR(1),
> +};
> +
>  static struct mv_sata_platform_data openrd_sata_data = {
>  	.n_ports	= 2,
>  };
> @@ -73,9 +81,14 @@ static void __init openrd_init(void)
>  
>  	kirkwood_ehci_init();
>  
> -	kirkwood_ge00_init(&openrd_ge00_data);
> -	if (machine_is_openrd_client())
> -		kirkwood_ge01_init(&openrd_ge01_data);
> +	if (machine_is_openrd_ultimate()) {
> +		kirkwood_ge00_init(&openrd_ultimate_ge00_data);
> +		kirkwood_ge01_init(&openrd_ultimate_ge01_data);
> +	} else {
> +		kirkwood_ge00_init(&openrd_ge00_data);
> +		if (machine_is_openrd_client())
> +			kirkwood_ge01_init(&openrd_ge01_data);
> +	}

Just write the PHY addresses into openrd_ge0[01]_data here iff
machine_is_openrd_ultimate()?

  parent reply	other threads:[~2010-06-08 17:45 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-08 17:24 Dmytro Milinevskyy
2010-06-08 17:38 ` Joe Perches
2010-06-08 17:45 ` Lennert Buytenhek [this message]
2010-06-08 19:47 Dmytro Milinevskyy
2010-06-09  7:25 ` Lennert Buytenhek
2010-06-09  7:37   ` Dmytro Milinevskyy
2010-06-09 20:14 Dmytro Milinevskyy
2010-06-09 20:37 ` Alexander Clouter
2010-06-09 20:39   ` Alexander Clouter
2010-06-09 20:42     ` Lennert Buytenhek
2010-06-10  1:56       ` Dmytro Milinevskyy
2010-06-10  2:24 Dmytro Milinevskyy
2010-06-10  5:50 ` Alexander Clouter
2010-06-10  6:15   ` Dmytro Milinevskyy
2010-06-10 19:12 Dmytro Milinevskyy
2010-06-12  8:29 ` Lennert Buytenhek

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=20100608174536.GW1743@mail.wantstofly.org \
    --to=buytenh@wantstofly.org \
    --cc=alex@digriz.org.uk \
    --cc=dhaval.vasa@einfochips.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=milinevskyy@gmail.com \
    --cc=nico@fluxnic.net \
    --cc=sguinot@lacie.com \
    --cc=simon.kagstrom@netinsight.net \
    --cc=tbm@cyrius.com \
    /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

all inboxes | Powered by JetHome®