Skip to content

Commit

Permalink
mpc85xx: handle MSM460 wifi mac in dts
Browse files Browse the repository at this point in the history
Userspace handling is deprecated.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb authored and blocktrron committed Oct 10, 2024
1 parent c3251f5 commit f8ca351
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ enterasys,ws-ap3710i|\
extreme-networks,ws-ap3825i)
mtd_get_mac_ascii cfg2 RADIOADDR${PHYNBR} > /sys${DEVPATH}/macaddress
;;
hpe,msm460)
wifi_mac=$(mtd_get_mac_binary colubris-bid 0x1f9bd)
[ "$PHYNBR" -eq 0 ] && echo "$wifi_mac" > /sys${DEVPATH}/macaddress
[ "$PHYNBR" -eq 1 ] && echo "$(macaddr_add $wifi_mac 16)" > /sys${DEVPATH}/macaddress
;;
ocedo,panda)
mtd_get_mac_ascii uboot-env0 wmac$(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress
;;
Expand Down
12 changes: 12 additions & 0 deletions target/linux/mpc85xx/files/arch/powerpc/boot/dts/msm460.dts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@
0x1000000 0x0 0x0
0x1000000 0x0 0x0
0x0 0x100000>;

wifi@0,0 {
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&macaddr_hwinfo_1f9bd 0>;
nvmem-cell-names = "mac-address";
};
};
};

Expand All @@ -190,6 +196,12 @@
0x1000000 0x0 0x0
0x1000000 0x0 0x0
0x0 0x100000>;

wifi@0,0 {
reg = <0x0000 0 0 0 0>;
nvmem-cells = <&macaddr_hwinfo_1f9bd 16>;
nvmem-cell-names = "mac-address";
};
};
};

Expand Down

0 comments on commit f8ca351

Please sign in to comment.