Commit c656c74d authored by Zhangfei Gao's avatar Zhangfei Gao Committed by Andrey Konovalov

ether: add hip04_eth

test:
ifconfig eth0 192.168.10.1; ping 192.168.10.6 (host)
Signed-off-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
parent 58e31664
* Hisilicon hip04 Ethernet Controller
Required properties:
- compatible: should be "hisilicon,hip04-mac".
- reg: address and length of the register set for the device.
- interrupts: interrupt for the device.
- port: port number combined with the controller: range from 0 to 31.
- speed: 100 (100M) or 1000 (1000M).
Example:
ge0: ethernet@2800000 {
compatible = "hisilicon,hip04-mac";
reg = <0x2800000 0x10000>;
interrupts = <0 434 4>;
port = <0>;
speed = <1000>;
};
* Hisilicon hip04 Ethernet ppe: control rx & rx fifos of all ethnet controllers
Required properties:
- compatible: should be "hisilicon,ppebase".
Example:
ppebase: ppebase@28c0000 {
compatible = "hisilicon,ppebase";
reg = <0x28c0000 0x10000>;
};
......@@ -166,5 +166,6 @@ source "drivers/net/ethernet/via/Kconfig"
source "drivers/net/ethernet/wiznet/Kconfig"
source "drivers/net/ethernet/xilinx/Kconfig"
source "drivers/net/ethernet/xircom/Kconfig"
source "drivers/net/ethernet/hisilicon/Kconfig"
endif # ETHERNET
......@@ -77,3 +77,4 @@ obj-$(CONFIG_NET_VENDOR_VIA) += via/
obj-$(CONFIG_NET_VENDOR_WIZNET) += wiznet/
obj-$(CONFIG_NET_VENDOR_XILINX) += xilinx/
obj-$(CONFIG_NET_VENDOR_XIRCOM) += xircom/
obj-$(CONFIG_NET_VENDOR_HISILICON) += hisilicon/
#
# HISILICON device configuration
#
config NET_VENDOR_HISILICON
bool "Hisilicon devices"
default y
depends on (ARM && ARCH_HIP04)
---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_HISILICON
config HIP04_ETH
tristate "HISILICON P04 Ethernet support"
depends on ARM && ARCH_HIP04
select NET_CORE
---help---
If you wish to compile a kernel for a hardware with hisilicon p04 SoC and
want to use the internal ethernet then you should answer Y to this.
endif # NET_VENDOR_HISILICON
#
# Makefile for the HISILICON network device drivers.
#
obj-$(CONFIG_HIP04_ETH) += hip04_eth.o
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment