Skip to content

Commit

Permalink
net: velocity: Add platform device support to VIA velocity driver
Browse files Browse the repository at this point in the history
Add support for the VIA Velocity network driver to be bound to a
OF created platform device.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Tony Prisk authored and David S. Miller committed May 20, 2013
1 parent e2c41f1 commit 6dffbe5
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 129 deletions.
20 changes: 20 additions & 0 deletions Documentation/devicetree/bindings/net/via-velocity.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
* VIA Velocity 10/100/1000 Network Controller

Required properties:
- compatible : Should be "via,velocity-vt6110"
- reg : Address and length of the io space
- interrupts : Should contain the controller interrupt line

Optional properties:
- no-eeprom : PCI network cards use an external EEPROM to store data. Embedded
devices quite often set this data in uboot and do not provide an eeprom.
Specify this option if you have no external eeprom.

Examples:

eth0@d8004000 {
compatible = "via,velocity-vt6110";
reg = <0xd8004000 0x400>;
interrupts = <10>;
no-eeprom;
};
3 changes: 1 addition & 2 deletions drivers/net/ethernet/via/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
config NET_VENDOR_VIA
bool "VIA devices"
default y
depends on PCI
---help---
If you have a network (Ethernet) card belonging to this class, say Y
and read the Ethernet-HOWTO, available from
Expand Down Expand Up @@ -45,7 +44,7 @@ config VIA_RHINE_MMIO

config VIA_VELOCITY
tristate "VIA Velocity support"
depends on PCI
depends on (PCI || USE_OF)
select CRC32
select CRC_CCITT
select NET_CORE
Expand Down
Loading

0 comments on commit 6dffbe5

Please sign in to comment.