summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-01-16 01:45:14 +0300
committerDavid S. Miller <davem@davemloft.net>2015-01-16 09:00:03 +0300
commitde3900833ee635d5658415fea9c8c4e13507d777 (patch)
treec59d439d0f3e8927101966c50bb78517c8cb0b78 /drivers/net
parenta1594321a9bc55ad44e02b27773cb0ed05837531 (diff)
downloadlinux-de3900833ee635d5658415fea9c8c4e13507d777.tar.xz
net: davinci_emac: Add support for emac on dm816x
On dm816x we have two emac controllers with separate memory areas. Cc: Brian Hutchinson <b.hutchman@gmail.com> Cc: Felipe Balbi <balbi@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/ti/davinci_emac.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/davinci_emac.c b/drivers/net/ethernet/ti/davinci_emac.c
index 1e5ea81504f0..5fae4354722c 100644
--- a/drivers/net/ethernet/ti/davinci_emac.c
+++ b/drivers/net/ethernet/ti/davinci_emac.c
@@ -2120,9 +2120,14 @@ static const struct emac_platform_data am3517_emac_data = {
.hw_ram_addr = 0x01e20000,
};
+static const struct emac_platform_data dm816_emac_data = {
+ .version = EMAC_VERSION_2,
+};
+
static const struct of_device_id davinci_emac_of_match[] = {
{.compatible = "ti,davinci-dm6467-emac", },
{.compatible = "ti,am3517-emac", .data = &am3517_emac_data, },
+ {.compatible = "ti,dm816-emac", .data = &dm816_emac_data, },
{},
};
MODULE_DEVICE_TABLE(of, davinci_emac_of_match);