drivers: nxp_enet: Generate MAC using eth.h
The MAC address macros are ridiculous in this driver. Rewrite to be simpler and use eth.h common function. Also, clarify the mac address generation on the DT overlays. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
This commit is contained in:
parent
4be0439bed
commit
ac58f3abe6
9 changed files with 61 additions and 70 deletions
|
@ -42,6 +42,7 @@
|
|||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-0 = <&pinmux_enet>;
|
||||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
phy-connection-type = "rmii";
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
|
@ -43,6 +43,7 @@
|
|||
pinctrl-names = "default";
|
||||
phy-handle = <&phy>;
|
||||
phy-connection-type = "rmii";
|
||||
zephyr,random-mac-address;
|
||||
};
|
||||
|
||||
&enet_mdio {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue