Skip to content

Commit 6c821bd

Browse files
Kasreyndavem330
authored andcommitted
net: Add MOXA ART SoCs ethernet driver
The MOXA UC-711X hardware(s) has an ethernet controller that seem to be developed internally. The IC used is "RTL8201CP". Since there is no public documentation, this driver is mostly the one published by MOXA that has been heavily cleaned up / ported from linux 2.6.9. Signed-off-by: Jonas Jensen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 28d6427 commit 6c821bd

File tree

7 files changed

+946
-0
lines changed

7 files changed

+946
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MOXA ART Ethernet Controller
2+
3+
Required properties:
4+
5+
- compatible : Must be "moxa,moxart-mac"
6+
- reg : Should contain register location and length
7+
- interrupts : Should contain the mac interrupt number
8+
9+
Example:
10+
11+
mac0: mac@90900000 {
12+
compatible = "moxa,moxart-mac";
13+
reg = <0x90900000 0x100>;
14+
interrupts = <25 0>;
15+
};
16+
17+
mac1: mac@92000000 {
18+
compatible = "moxa,moxart-mac";
19+
reg = <0x92000000 0x100>;
20+
interrupts = <27 0>;
21+
};

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ source "drivers/net/ethernet/marvell/Kconfig"
9090
source "drivers/net/ethernet/mellanox/Kconfig"
9191
source "drivers/net/ethernet/micrel/Kconfig"
9292
source "drivers/net/ethernet/microchip/Kconfig"
93+
source "drivers/net/ethernet/moxa/Kconfig"
9394
source "drivers/net/ethernet/myricom/Kconfig"
9495

9596
config FEALNX

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ obj-$(CONFIG_NET_VENDOR_MARVELL) += marvell/
4242
obj-$(CONFIG_NET_VENDOR_MELLANOX) += mellanox/
4343
obj-$(CONFIG_NET_VENDOR_MICREL) += micrel/
4444
obj-$(CONFIG_NET_VENDOR_MICROCHIP) += microchip/
45+
obj-$(CONFIG_NET_VENDOR_MOXART) += moxa/
4546
obj-$(CONFIG_NET_VENDOR_MYRI) += myricom/
4647
obj-$(CONFIG_FEALNX) += fealnx.o
4748
obj-$(CONFIG_NET_VENDOR_NATSEMI) += natsemi/

drivers/net/ethernet/moxa/Kconfig

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# MOXART device configuration
3+
#
4+
5+
config NET_VENDOR_MOXART
6+
bool "MOXA ART devices"
7+
default y
8+
depends on (ARM && ARCH_MOXART)
9+
---help---
10+
If you have a network (Ethernet) card belonging to this class, say Y
11+
and read the Ethernet-HOWTO, available from
12+
<http://www.tldp.org/docs.html#howto>.
13+
14+
Note that the answer to this question doesn't directly affect the
15+
kernel: saying N will just cause the configurator to skip all
16+
the questions about MOXA ART devices. If you say Y, you will be asked
17+
for your specific card in the following questions.
18+
19+
if NET_VENDOR_MOXART
20+
21+
config ARM_MOXART_ETHER
22+
tristate "MOXART Ethernet support"
23+
depends on ARM && ARCH_MOXART
24+
select NET_CORE
25+
---help---
26+
If you wish to compile a kernel for a hardware with MOXA ART SoC and
27+
want to use the internal ethernet then you should answer Y to this.
28+
29+
30+
endif # NET_VENDOR_MOXART

drivers/net/ethernet/moxa/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the MOXART network device drivers.
3+
#
4+
5+
obj-$(CONFIG_ARM_MOXART_ETHER) += moxart_ether.o

0 commit comments

Comments
 (0)