forked from luck/tmp_suning_uos_patched
net: add calxeda xgmac ethernet driver
Add support for the XGMAC 10Gb ethernet device in the Calxeda Highbank SOC. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8ac72d1671
commit
85c10f2828
15
Documentation/devicetree/bindings/net/calxeda-xgmac.txt
Normal file
15
Documentation/devicetree/bindings/net/calxeda-xgmac.txt
Normal file
@ -0,0 +1,15 @@
|
||||
* Calxeda Highbank 10Gb XGMAC Ethernet
|
||||
|
||||
Required properties:
|
||||
- compatible : Should be "calxeda,hb-xgmac"
|
||||
- reg : Address and length of the register set for the device
|
||||
- interrupts : Should contain 3 xgmac interrupts. The 1st is main interrupt.
|
||||
The 2nd is pwr mgt interrupt. The 3rd is low power state interrupt.
|
||||
|
||||
Example:
|
||||
|
||||
ethernet@fff50000 {
|
||||
compatible = "calxeda,hb-xgmac";
|
||||
reg = <0xfff50000 0x1000>;
|
||||
interrupts = <0 77 4 0 78 4 0 79 4>;
|
||||
};
|
@ -28,6 +28,7 @@ source "drivers/net/ethernet/cadence/Kconfig"
|
||||
source "drivers/net/ethernet/adi/Kconfig"
|
||||
source "drivers/net/ethernet/broadcom/Kconfig"
|
||||
source "drivers/net/ethernet/brocade/Kconfig"
|
||||
source "drivers/net/ethernet/calxeda/Kconfig"
|
||||
source "drivers/net/ethernet/chelsio/Kconfig"
|
||||
source "drivers/net/ethernet/cirrus/Kconfig"
|
||||
source "drivers/net/ethernet/cisco/Kconfig"
|
||||
|
@ -14,6 +14,7 @@ obj-$(CONFIG_NET_ATMEL) += cadence/
|
||||
obj-$(CONFIG_NET_BFIN) += adi/
|
||||
obj-$(CONFIG_NET_VENDOR_BROADCOM) += broadcom/
|
||||
obj-$(CONFIG_NET_VENDOR_BROCADE) += brocade/
|
||||
obj-$(CONFIG_NET_CALXEDA_XGMAC) += calxeda/
|
||||
obj-$(CONFIG_NET_VENDOR_CHELSIO) += chelsio/
|
||||
obj-$(CONFIG_NET_VENDOR_CIRRUS) += cirrus/
|
||||
obj-$(CONFIG_NET_VENDOR_CISCO) += cisco/
|
||||
|
7
drivers/net/ethernet/calxeda/Kconfig
Normal file
7
drivers/net/ethernet/calxeda/Kconfig
Normal file
@ -0,0 +1,7 @@
|
||||
config NET_CALXEDA_XGMAC
|
||||
tristate "Calxeda 1G/10G XGMAC Ethernet driver"
|
||||
|
||||
select CRC32
|
||||
help
|
||||
This is the driver for the XGMAC Ethernet IP block found on Calxeda
|
||||
Highbank platforms.
|
1
drivers/net/ethernet/calxeda/Makefile
Normal file
1
drivers/net/ethernet/calxeda/Makefile
Normal file
@ -0,0 +1 @@
|
||||
obj-$(CONFIG_NET_CALXEDA_XGMAC) += xgmac.o
|
1928
drivers/net/ethernet/calxeda/xgmac.c
Normal file
1928
drivers/net/ethernet/calxeda/xgmac.c
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user