mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
macb: Use generic PHY layer
Convert the macb driver to use the generic PHY layer in drivers/net/phy. Signed-off-by: Frederic RODO <f.rodo@til-technologies.fr> Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
54ab2927d3
commit
6c36a70744
+1
-1
@@ -187,7 +187,7 @@ config MII
|
||||
config MACB
|
||||
tristate "Atmel MACB support"
|
||||
depends on AVR32 || ARCH_AT91SAM9260 || ARCH_AT91SAM9263
|
||||
select MII
|
||||
select PHYLIB
|
||||
help
|
||||
The Atmel MACB ethernet interface is found on many AT32 and AT91
|
||||
parts. Say Y to include support for the MACB chip.
|
||||
|
||||
+208
-259
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -383,11 +383,11 @@ struct macb {
|
||||
|
||||
unsigned int rx_pending, tx_pending;
|
||||
|
||||
struct delayed_work periodic_task;
|
||||
|
||||
struct mutex mdio_mutex;
|
||||
struct completion mdio_complete;
|
||||
struct mii_if_info mii;
|
||||
struct mii_bus mii_bus;
|
||||
struct phy_device *phy_dev;
|
||||
unsigned int link;
|
||||
unsigned int speed;
|
||||
unsigned int duplex;
|
||||
};
|
||||
|
||||
#endif /* _MACB_H */
|
||||
|
||||
@@ -64,6 +64,7 @@ extern void __init at91_add_device_mmc(short mmc_id, struct at91_mmc_data *data)
|
||||
|
||||
/* Ethernet (EMAC & MACB) */
|
||||
struct at91_eth_data {
|
||||
u32 phy_mask;
|
||||
u8 phy_irq_pin; /* PHY IRQ */
|
||||
u8 is_rmii; /* using RMII interface? */
|
||||
};
|
||||
|
||||
@@ -21,6 +21,7 @@ void at32_map_usart(unsigned int hw_id, unsigned int line);
|
||||
struct platform_device *at32_add_device_usart(unsigned int id);
|
||||
|
||||
struct eth_platform_data {
|
||||
u32 phy_mask;
|
||||
u8 is_rmii;
|
||||
};
|
||||
struct platform_device *
|
||||
|
||||
Reference in New Issue
Block a user