[mac] add force link support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
parent
4a770377d1
commit
c18c577722
|
@ -436,7 +436,8 @@ static int macb_probe(struct device_d *dev)
|
|||
macb->miiphy.read = macb_phy_read;
|
||||
macb->miiphy.write = macb_phy_write;
|
||||
macb->miiphy.address = pdata->phy_addr;
|
||||
macb->miiphy.flags = 0;
|
||||
macb->miiphy.flags = pdata->flags & AT91SAM_ETHER_FORCE_LINK ?
|
||||
MIIPHY_FORCE_LINK : 0;
|
||||
macb->miiphy.edev = edev;
|
||||
macb->flags = pdata->flags;
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#define AT91SAM_ETHER_MII (0 << 0)
|
||||
#define AT91SAM_ETHER_RMII (1 << 0)
|
||||
#define AT91SAM_ETHER_FORCE_LINK (1 << 1)
|
||||
|
||||
struct at91sam_ether_platform_data {
|
||||
unsigned int flags;
|
||||
|
|
Loading…
Reference in New Issue