ramips: msg1500: fixes error mac address

Fixes: b27f77f ("ramips: add support for RAISECOM MSG1500")
Signed-off-by: AmadeusGhost <amadeus@openjmu.xyz>
This commit is contained in:
AmadeusGhost 2021-09-02 12:20:18 +08:00
parent f4659685c5
commit 781f8a604b
2 changed files with 2 additions and 13 deletions

View File

@ -110,8 +110,7 @@
mediatek,mtd-eeprom = <&factory 0x0>;
/* 5 GHz (phy1) does not take the address from calibration data,
but setting it manually here works */
nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
mtd-mac-address = <&factory 0x4>;
};
};
@ -150,13 +149,3 @@
function = "gpio";
};
};
&factory {
compatible = "nvmem-cells";
#address-cells = <1>;
#size-cells = <1>;
macaddr_factory_4: macaddr@4 {
reg = <0x4 0x6>;
};
};

View File

@ -41,7 +41,7 @@ case "$board" in
;;
raisecom,msg1500-x-00)
[ "$PHYNBR" = "0" ] && \
macaddr_setbit_la "$(mtd_get_mac_ascii Config protest_lan_mac)" \
macaddr_setbit_la "$(mtd_get_mac_ascii Config .protest_lan_mac)" \
> /sys${DEVPATH}/macaddress
;;
esac