Commit 5806816
committed
drivers: net: sam_gmac: update random MAC addr for multi inst support
Add variable 'random_mac_addr' for 'zephyr,random-mac-address' from
device tree. Update generate_mac() to get random MAC address for each
GAMC interface with the 'zephyr,random-mac-address' property.
Signed-off-by: Tony Han <[email protected]>1 parent e225164 commit 5806816
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1716 | 1716 | | |
1717 | 1717 | | |
1718 | 1718 | | |
1719 | | - | |
| 1719 | + | |
1720 | 1720 | | |
1721 | 1721 | | |
| 1722 | + | |
1722 | 1723 | | |
1723 | | - | |
1724 | | - | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
1725 | 1728 | | |
1726 | 1729 | | |
1727 | 1730 | | |
| |||
1811 | 1814 | | |
1812 | 1815 | | |
1813 | 1816 | | |
1814 | | - | |
| 1817 | + | |
1815 | 1818 | | |
1816 | 1819 | | |
1817 | 1820 | | |
| |||
2131 | 2134 | | |
2132 | 2135 | | |
2133 | 2136 | | |
| 2137 | + | |
2134 | 2138 | | |
2135 | 2139 | | |
2136 | 2140 | | |
| |||
2148 | 2152 | | |
2149 | 2153 | | |
2150 | 2154 | | |
| 2155 | + | |
2151 | 2156 | | |
2152 | 2157 | | |
2153 | 2158 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
0 commit comments