diff options
author | Stefan Roese <sr@denx.de> | 2005-09-21 18:20:22 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2005-09-21 18:20:22 +0200 |
commit | 5810dc3a2e4f5f9075f4a1818317b41e552843e5 (patch) | |
tree | a4f29c8c820a92c507efa054d2a26907c17646e9 /drivers/tsec.h | |
parent | 1806c75959c5a207b1b43885da818b2b77f31ac8 (diff) | |
download | u-boot-imx-5810dc3a2e4f5f9075f4a1818317b41e552843e5.zip u-boot-imx-5810dc3a2e4f5f9075f4a1818317b41e552843e5.tar.gz u-boot-imx-5810dc3a2e4f5f9075f4a1818317b41e552843e5.tar.bz2 |
Fix autonegotiation in tsec ethernet driver
Patch by Stefan Roese, 21 Sep 2005
Diffstat (limited to 'drivers/tsec.h')
-rw-r--r-- | drivers/tsec.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/tsec.h b/drivers/tsec.h index 15961d7..c26fcc0 100644 --- a/drivers/tsec.h +++ b/drivers/tsec.h @@ -40,6 +40,8 @@ #define TSEC_TIMEOUT 1000 #define TOUT_LOOP 1000000 +#define PHY_AUTONEGOTIATE_TIMEOUT 5000 /* in ms */ + /* MAC register bits */ #define MACCFG1_SOFT_RESET 0x80000000 #define MACCFG1_RESET_RX_MC 0x00080000 @@ -77,6 +79,7 @@ #define MIIM_CONTROL 0x00 #define MIIM_CONTROL_RESET 0x00009140 #define MIIM_CONTROL_INIT 0x00001140 +#define MIIM_CONTROL_RESTART 0x00001340 #define MIIM_ANEN 0x00001000 #define MIIM_CR 0x00 @@ -86,6 +89,8 @@ #define MIIM_STATUS 0x1 #define MIIM_STATUS_AN_DONE 0x00000020 #define MIIM_STATUS_LINK 0x0004 +#define PHY_BMSR_AUTN_ABLE 0x0008 +#define PHY_BMSR_AUTN_COMP 0x0020 #define MIIM_PHYIR1 0x2 #define MIIM_PHYIR2 0x3 |