forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <jonas.jensen@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
7 changed files
with
946 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MOXA ART Ethernet Controller | ||
|
||
Required properties: | ||
|
||
- compatible : Must be "moxa,moxart-mac" | ||
- reg : Should contain register location and length | ||
- interrupts : Should contain the mac interrupt number | ||
|
||
Example: | ||
|
||
mac0: mac@90900000 { | ||
compatible = "moxa,moxart-mac"; | ||
reg = <0x90900000 0x100>; | ||
interrupts = <25 0>; | ||
}; | ||
|
||
mac1: mac@92000000 { | ||
compatible = "moxa,moxart-mac"; | ||
reg = <0x92000000 0x100>; | ||
interrupts = <27 0>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# MOXART device configuration | ||
# | ||
|
||
config NET_VENDOR_MOXART | ||
bool "MOXA ART devices" | ||
default y | ||
depends on (ARM && ARCH_MOXART) | ||
---help--- | ||
If you have a network (Ethernet) card belonging to this class, say Y | ||
and read the Ethernet-HOWTO, available from | ||
<http://www.tldp.org/docs.html#howto>. | ||
|
||
Note that the answer to this question doesn't directly affect the | ||
kernel: saying N will just cause the configurator to skip all | ||
the questions about MOXA ART devices. If you say Y, you will be asked | ||
for your specific card in the following questions. | ||
|
||
if NET_VENDOR_MOXART | ||
|
||
config ARM_MOXART_ETHER | ||
tristate "MOXART Ethernet support" | ||
depends on ARM && ARCH_MOXART | ||
select NET_CORE | ||
---help--- | ||
If you wish to compile a kernel for a hardware with MOXA ART SoC and | ||
want to use the internal ethernet then you should answer Y to this. | ||
|
||
|
||
endif # NET_VENDOR_MOXART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# | ||
# Makefile for the MOXART network device drivers. | ||
# | ||
|
||
obj-$(CONFIG_ARM_MOXART_ETHER) += moxart_ether.o |
Oops, something went wrong.