Use Miscellaneous Configuration Register bit definition instead of

magic number.
This commit is contained in:
yongari 2010-07-15 23:34:58 +00:00
parent 699b4feb6f
commit 72cddfd851
2 changed files with 2 additions and 1 deletions

View File

@ -3117,7 +3117,7 @@ bge_reset(struct bge_softc *sc)
* powered up in D0 uninitialized.
*/
if (BGE_IS_5705_PLUS(sc))
reset |= 0x04000000;
reset |= BGE_MISCCFG_GPHY_PD_OVERRIDE;
/* Issue global reset */
write_op(sc, BGE_MISC_CFG, reset);

View File

@ -1823,6 +1823,7 @@
#define BGE_MISCCFG_BOARD_ID_5788 0x00010000
#define BGE_MISCCFG_BOARD_ID_5788M 0x00018000
#define BGE_MISCCFG_EPHY_IDDQ 0x00200000
#define BGE_MISCCFG_GPHY_PD_OVERRIDE 0x04000000
#define BGE_32BITTIME_66MHZ (0x41 << 1)