[U-Boot] [PATCH 2/6] Convert Suen3 board to use array of phy addrs
Tor Krill
tor at excito.com
Thu Jun 24 09:55:17 CEST 2010
Signed-off-by: Tor Krill <tor at 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
More information about the U-Boot
mailing list