diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2007-12-05 11:14:28 +1100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-07 15:09:06 -0500 |
commit | 1f57877a39105ec4d99d63d02058f6db6ca6abe0 (patch) | |
tree | e975e9f66a8b66687b66d32f00160c9fcc98d699 /drivers/net/ibm_newemac/rgmii.h | |
parent | 911b237d7d327db5371a762f4d8d8cd9ea763662 (diff) | |
download | kernel_samsung_smdk4412-1f57877a39105ec4d99d63d02058f6db6ca6abe0.zip kernel_samsung_smdk4412-1f57877a39105ec4d99d63d02058f6db6ca6abe0.tar.gz kernel_samsung_smdk4412-1f57877a39105ec4d99d63d02058f6db6ca6abe0.tar.bz2 |
ibm_newemac: Cleanup/Fix RGMII MDIO support detection
More than just "AXON" version of EMAC RGMII supports MDIO, so replace
the current test with a generic property in the device-tree that
indicates such support.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Stefan Roese <sr@denx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/ibm_newemac/rgmii.h')
-rw-r--r-- | drivers/net/ibm_newemac/rgmii.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ibm_newemac/rgmii.h b/drivers/net/ibm_newemac/rgmii.h index 5780683..44a0f20 100644 --- a/drivers/net/ibm_newemac/rgmii.h +++ b/drivers/net/ibm_newemac/rgmii.h @@ -35,8 +35,9 @@ struct rgmii_regs { struct rgmii_instance { struct rgmii_regs __iomem *base; - /* Type of RGMII bridge */ - int type; + /* RGMII bridge flags */ + int flags; +#define EMAC_RGMII_FLAG_HAS_MDIO 0x00000001 /* Only one EMAC whacks us at a time */ struct mutex lock; |