mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
ath79: moxa,awk-1137c: use nvmem for calibration
Userspace handling is deprecated. MAC address handling will have to wait as there's no support for variables other than ethaddr currently. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
efd03c964a
commit
eeaefcc560
@ -157,6 +157,16 @@
|
||||
label = "art";
|
||||
reg = <0xfe0000 0x010000>;
|
||||
read-only;
|
||||
|
||||
nvmem-layout {
|
||||
compatible = "fixed-layout";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
cal_art_1000: calibration@1000 {
|
||||
reg = <0x1000 0x440>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
partition@ff0000 {
|
||||
@ -174,5 +184,7 @@
|
||||
|
||||
&wmac {
|
||||
status = "okay";
|
||||
qca,no-eeprom;
|
||||
|
||||
nvmem-cells = <&cal_art_1000>;
|
||||
nvmem-cell-names = "calibration";
|
||||
};
|
||||
|
@ -27,10 +27,6 @@ case "$FIRMWARE" in
|
||||
caldata_extract "art" 0x1000 0x440
|
||||
ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env ethaddr)
|
||||
;;
|
||||
moxa,awk-1137c)
|
||||
caldata_extract "art" 0x1000 0x440
|
||||
ath9k_patch_mac $(mtd_get_mac_ascii u-boot-env mac_addr)
|
||||
;;
|
||||
*)
|
||||
caldata_die "board $board is not supported yet"
|
||||
;;
|
||||
|
@ -98,6 +98,10 @@ case "$board" in
|
||||
[ "$PHYNBR" -eq 1 ] && \
|
||||
mtd_get_mac_ascii devdata wlan5mac > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
moxa,awk-1137c)
|
||||
[ "$PHYNBR" -eq 0 ] && \
|
||||
mtd_get_mac_ascii u-boot-env mac_addr > /sys${DEVPATH}/macaddress
|
||||
;;
|
||||
phicomm,k2t)
|
||||
[ "$PHYNBR" -eq 0 ] && \
|
||||
k2t_get_mac "5g_mac" > /sys${DEVPATH}/macaddress
|
||||
|
Loading…
Reference in New Issue
Block a user