summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorstroese <stroese>2005-07-05 11:35:27 +0000
committerstroese <stroese>2005-07-05 11:35:27 +0000
commitcd5b2b9941d5b6f6596787ebdb03c215d91fc44d (patch)
tree23a002c3594e8690fab66a59e8a66b77685e041c /board
parent88804d19e2bf36c9eaefadbd7199c093c900953b (diff)
downloadu-boot-imx-cd5b2b9941d5b6f6596787ebdb03c215d91fc44d.zip
u-boot-imx-cd5b2b9941d5b6f6596787ebdb03c215d91fc44d.tar.gz
u-boot-imx-cd5b2b9941d5b6f6596787ebdb03c215d91fc44d.tar.bz2
* Patch by Stefan Roese, 5 Jul 2005:
Update uc100 board PHY setup
Diffstat (limited to 'board')
-rw-r--r--board/uc100/uc100.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/uc100/uc100.c b/board/uc100/uc100.c
index 5597790..6fc68e5 100644
--- a/board/uc100/uc100.c
+++ b/board/uc100/uc100.c
@@ -28,6 +28,7 @@
#include <common.h>
#include <mpc8xx.h>
#include <i2c.h>
+#include <miiphy.h>
/*********************************************************************/
@@ -252,6 +253,14 @@ int misc_init_r (void)
val |= 0x80;
i2c_reg_write (CFG_I2C_RTC_ADDR, 0x0D, val);
+ /*
+ * Configure PHY to setup LED's correctly and use 100MBit, FD
+ */
+ mii_init();
+
+ miiphy_write(0, PHY_BMCR, 0x2100); /* disable auto-negotiation, 100mbit, full-duplex */
+ miiphy_write(0, PHY_FCSCR, 0x4122); /* set LED's to Link, Transmit, Receive */
+
return 0;
}