Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
static struct phy_driver ksz9031_driver = {
.name = "Micrel ksz9031",
- .uid = 0x221620,
- .mask = 0xfffff0,
+ .uid = PHY_ID_KSZ9031,
+ .mask = MII_KSZ9x31_SILICON_REV_MASK,
.features = PHY_GBIT_FEATURES,
.config = &ksz9031_config,
.startup = &ksz90xx_startup,
#define MII_KSZ9031_FLP_BURST_TX_LO 0x3
#define MII_KSZ9031_FLP_BURST_TX_HI 0x4
+#define MII_KSZ9x31_SILICON_REV_MASK 0xfffff0
+
+#define PHY_ID_KSZ9031 0x00221620
+
+
/* Registers */
#define MMD_ACCESS_CONTROL 0xd
#define MMD_ACCESS_REG_DATA 0xe