public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tor Krill <tor@excito.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] Convert Suen3 board to use array of phy addrs
Date: Thu, 24 Jun 2010 09:55:17 +0200	[thread overview]
Message-ID: <1277366121-14683-3-git-send-email-tor@excito.com> (raw)
In-Reply-To: <1277366121-14683-1-git-send-email-tor@excito.com>

Signed-off-by: Tor Krill <tor@excito.com>
---
 board/keymile/km_arm/km_arm.c |    3 ++-
 include/configs/km_arm.h      |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index 53cf474..16da353 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -244,12 +244,13 @@ int dram_init(void)
 void reset_phy(void)
 {
 	char *name = "egiga0";
+	u8 port_addr[] = CONFIG_PHY_ADDRS;
 
 	if (miiphy_set_current_dev(name))
 		return;
 
 	/* reset the phy */
-	miiphy_reset(name, CONFIG_PHY_BASE_ADR);
+	miiphy_reset(name, port_addr[0]);
 }
 
 #if defined(CONFIG_HUSH_INIT_VAR)
diff --git a/include/configs/km_arm.h b/include/configs/km_arm.h
index a928c2c..1c3fa0d 100644
--- a/include/configs/km_arm.h
+++ b/include/configs/km_arm.h
@@ -130,7 +130,7 @@
 #define CONFIG_KIRKWOOD_EGIGA	/* Enable kirkwood Gbe Controller Driver */
 #define CONFIG_SYS_FAULT_ECHO_LINK_DOWN	/* detect link using phy */
 #define CONFIG_KIRKWOOD_EGIGA_PORTS	{1,0}	/* enable port 0 only */
-#define CONFIG_PHY_BASE_ADR	0
+#define CONFIG_PHY_ADDRS	{0,1}
 #define CONFIG_ENV_OVERWRITE	/* ethaddr can be reprogrammed */
 #define CONFIG_RESET_PHY_R	/* use reset_phy() to init 88E1118 PHY */
 
-- 
1.7.0.4

  parent reply	other threads:[~2010-06-24  7:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-24  7:55 [U-Boot] [PATCH 0/6] Update kirkwood egiga to allow dynamic phy addrs Tor Krill
2010-06-24  7:55 ` [U-Boot] [PATCH 1/6] Allow PHY addresses on kirkwood egiga to be non continuous Tor Krill
2010-06-24  7:55 ` Tor Krill [this message]
2010-06-24  7:55 ` [U-Boot] [PATCH 3/6] Convert Sheevaplug board to use array of phy addrs Tor Krill
2010-06-24  7:55 ` [U-Boot] [PATCH 4/6] Convert OpenRD " Tor Krill
2010-06-24  7:55 ` [U-Boot] [PATCH 5/6] Convert Guruplug " Tor Krill
2010-06-24  7:55 ` [U-Boot] [PATCH 6/6] Convert rd6281a " Tor Krill
2010-06-24  9:11 ` [U-Boot] [PATCH 0/6] Update kirkwood egiga to allow dynamic " Wolfgang Denk
2010-06-24  9:17   ` Tor Krill
  -- strict thread matches above, loose matches on Subject: below --
2010-06-24  9:00 Tor Krill
2010-06-24  9:00 ` [U-Boot] [PATCH 2/6] Convert Suen3 board to use array of " Tor Krill
2010-06-23 16:04 [U-Boot] [PATCH 0/6] Update kirkwood egiga to allow dynamic " Tor Krill
2010-06-23 16:04 ` [U-Boot] [PATCH 2/6] Convert Suen3 board to use array of " Tor Krill

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=1277366121-14683-3-git-send-email-tor@excito.com \
    --to=tor@excito.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