macaddr = of_get_mac_address(..)
drivers/of/of_net.c:
const void *of_get_mac_address(struct device_node *np) { const void *addr; addr = of_get_mac_addr(np, "mac-address"); if (addr) return addr; addr = of_get_mac_addr(np, "local-mac-address"); if (addr) return addr; return of_get_mac_addr(np, "address"); }grep 一下所有的 dts, mac-addr,結果都是 local-mac-address,少數有 mac-address.
但是形式都一樣..
mac-address = [ 02 A1 A2 A3 A4 A5 ];
沒有留言:
張貼留言