[U-Boot] [PATCH 2/6] arm/km: enable external switch configuration for kmnusa
Holger Brunck
holger.brunck at keymile.com
Fri May 4 15:17:46 CEST 2012
From: Valentin Longchamp <valentin.longchamp at keymile.com>
The configuration EEPROM should be removed for P1B.
Signed-off-by: Valentin Longchamp <valentin.longchamp at keymile.com>
---
board/keymile/km_arm/km_arm.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/board/keymile/km_arm/km_arm.c b/board/keymile/km_arm/km_arm.c
index 5a06314..d2f88c2 100644
--- a/board/keymile/km_arm/km_arm.c
+++ b/board/keymile/km_arm/km_arm.c
@@ -393,13 +393,11 @@ void reset_phy(void)
if (miiphy_set_current_dev(name))
return;
- /* enable autoneg on port 0 phy */
- ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 0, 0, 0x3300);
+#if defined(CONFIG_KM_NUSA)
+ ext_switch_program(name, CONFIG_KM_MANAGED_SW_ADDR);
+#endif
- /* egress broadcast franes on all macs, with forwarding */
- ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 16, 4, 0x000f);
- ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 20, 4, 0x000f);
- ext_switch_reg_write(name, CONFIG_KM_MANAGED_SW_ADDR, 21, 4, 0x000f);
+ ext_switch_reset(name, CONFIG_KM_MANAGED_SW_ADDR);
}
#endif
--
1.7.1
More information about the U-Boot
mailing list