mediatek: use nvmem-cells binding to set wan macaddr on qihoo 360-t7

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-05-20 11:10:17 +08:00
parent 6a95ba90e6
commit 1815448b5a
2 changed files with 4 additions and 5 deletions

View File

@ -113,6 +113,10 @@
port@3 {
reg = <3>;
label = "wan";
nvmem-cells = <&macaddr_factory_14>;
nvmem-cell-names = "mac-address-ascii";
mac-address-increment = <1>;
};
port@6 {

View File

@ -69,11 +69,6 @@ mediatek_setup_macs()
livinet,zr-3020)
wan_mac=$(mtd_get_mac_ascii config2 wanmac)
;;
qihoo,360-t7-stock|\
qihoo,360-t7-ubootmod)
wan_mac=$(macaddr_add $(cat /sys/class/net/eth0/address) 1)
label_mac=$wan_mac
;;
xiaomi,redmi-router-ax6000|\
xiaomi,redmi-router-ax6000-stock|\
xiaomi,redmi-router-ax6000-ubootmod)