EMAC driver: ADSP-BF52x arch/mach support
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2fb9d6f5a3
commit
6893ff1c7e
|
@ -814,8 +814,8 @@ config ULTRA32
|
||||||
will be called smc-ultra32.
|
will be called smc-ultra32.
|
||||||
|
|
||||||
config BFIN_MAC
|
config BFIN_MAC
|
||||||
tristate "Blackfin 536/537 on-chip mac support"
|
tristate "Blackfin 527/536/537 on-chip mac support"
|
||||||
depends on NET_ETHERNET && (BF537 || BF536) && (!BF537_PORT_H)
|
depends on NET_ETHERNET && (BF527 || BF537 || BF536) && (!BF537_PORT_H)
|
||||||
select CRC32
|
select CRC32
|
||||||
select MII
|
select MII
|
||||||
select PHYLIB
|
select PHYLIB
|
||||||
|
@ -828,7 +828,7 @@ config BFIN_MAC
|
||||||
|
|
||||||
config BFIN_MAC_USE_L1
|
config BFIN_MAC_USE_L1
|
||||||
bool "Use L1 memory for rx/tx packets"
|
bool "Use L1 memory for rx/tx packets"
|
||||||
depends on BFIN_MAC && BF537
|
depends on BFIN_MAC && (BF527 || BF537)
|
||||||
default y
|
default y
|
||||||
help
|
help
|
||||||
To get maximum network performance, you should use L1 memory as rx/tx buffers.
|
To get maximum network performance, you should use L1 memory as rx/tx buffers.
|
||||||
|
@ -855,7 +855,8 @@ config BFIN_RX_DESC_NUM
|
||||||
config BFIN_MAC_RMII
|
config BFIN_MAC_RMII
|
||||||
bool "RMII PHY Interface (EXPERIMENTAL)"
|
bool "RMII PHY Interface (EXPERIMENTAL)"
|
||||||
depends on BFIN_MAC && EXPERIMENTAL
|
depends on BFIN_MAC && EXPERIMENTAL
|
||||||
default n
|
default y if BFIN527_EZKIT
|
||||||
|
default n if BFIN537_STAMP
|
||||||
help
|
help
|
||||||
Use Reduced PHY MII Interface
|
Use Reduced PHY MII Interface
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
#define DRV_NAME "bfin_mac"
|
#define DRV_NAME "bfin_mac"
|
||||||
#define DRV_VERSION "1.1"
|
#define DRV_VERSION "1.1"
|
||||||
#define DRV_AUTHOR "Bryan Wu, Luke Yang"
|
#define DRV_AUTHOR "Bryan Wu, Luke Yang"
|
||||||
#define DRV_DESC "Blackfin BF53[67] on-chip Ethernet MAC driver"
|
#define DRV_DESC "Blackfin BF53[67] BF527 on-chip Ethernet MAC driver"
|
||||||
|
|
||||||
MODULE_AUTHOR(DRV_AUTHOR);
|
MODULE_AUTHOR(DRV_AUTHOR);
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
@ -752,7 +752,7 @@ static void bf537mac_enable(void)
|
||||||
|
|
||||||
#if defined(CONFIG_BFIN_MAC_RMII)
|
#if defined(CONFIG_BFIN_MAC_RMII)
|
||||||
opmode |= RMII; /* For Now only 100MBit are supported */
|
opmode |= RMII; /* For Now only 100MBit are supported */
|
||||||
#ifdef CONFIG_BF_REV_0_2
|
#if (defined(CONFIG_BF537) || defined(CONFIG_BF536)) && CONFIG_BF_REV_0_2
|
||||||
opmode |= TE;
|
opmode |= TE;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -994,7 +994,7 @@ static int __init bf537mac_probe(struct net_device *dev)
|
||||||
/* register irq handler */
|
/* register irq handler */
|
||||||
if (request_irq
|
if (request_irq
|
||||||
(IRQ_MAC_RX, bf537mac_interrupt, IRQF_DISABLED | IRQF_SHARED,
|
(IRQ_MAC_RX, bf537mac_interrupt, IRQF_DISABLED | IRQF_SHARED,
|
||||||
"BFIN537_MAC_RX", dev)) {
|
"EMAC_RX", dev)) {
|
||||||
printk(KERN_WARNING DRV_NAME
|
printk(KERN_WARNING DRV_NAME
|
||||||
": Unable to attach BlackFin MAC RX interrupt\n");
|
": Unable to attach BlackFin MAC RX interrupt\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
|
|
Loading…
Reference in a new issue