net: davinci_emac: Get device MAC on 3517
authorTony Lindgren <tony@atomide.com>
Wed, 28 Jan 2015 19:33:06 +0000 (11:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 31 Jan 2015 01:42:01 +0000 (17:42 -0800)
Looks like on 3517 davinci_emac MAC address registers have a
different layout compared to dm816x and am33xx.

Let's add a function to get the 3517 MAC address.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/am3517.dtsi
drivers/net/ethernet/ti/davinci_emac.c

index 5a452fd..c90724b 100644 (file)
@@ -31,6 +31,7 @@
                        status = "disabled";
                        reg = <0x5c000000 0x30000>;
                        interrupts = <67 68 69 70>;
+                       syscon = <&omap3_scm_general>;
                        ti,davinci-ctrl-reg-offset = <0x10000>;
                        ti,davinci-ctrl-mod-reg-offset = <0>;
                        ti,davinci-ctrl-ram-offset = <0x20000>;