2
0
forked from Ivasoft/openwrt

treewide: convert mtd-mac-address-increment* to generic implementation

Rework patch 681-NET-add-mtd-mac-address-support to implement
only the function to read the mac-address from mtd.
Generalize mtd-mac-address-increment function so it can be applied
to any source of of_get_mac_address.
Rename any mtd-mac-address-increment to mac-address-increment.
Rename any mtd-mac-address-increment-byte to mac-address-increment-byte.

This should make simplify the conversion of target to nvmem implementation.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
Ansuel Smith
2021-07-12 21:42:41 +02:00
committed by Petr Štetiar
parent 985954ccbd
commit d284e6ef0f
158 changed files with 507 additions and 242 deletions

View File

@@ -97,7 +97,7 @@
phy-mode = "rmii";
phy-handle = <&phy0>;
mtd-mac-address = <&ath9k_cal 0xa91>;
mtd-mac-address-increment = <(-2)>;
mac-address-increment = <(-2)>;
mdio-bus {
#address-cells = <1>;

View File

@@ -98,7 +98,7 @@
&gsw {
phy-mode = "mii";
mtd-mac-address = <&ath9k_cal 0xa91>;
mtd-mac-address-increment = <(-2)>;
mac-address-increment = <(-2)>;
};
&gpio {

View File

@@ -155,6 +155,6 @@
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,mtd-eeprom-swap;
mtd-mac-address = <&boardconfig 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
};

View File

@@ -213,7 +213,7 @@
reg = <0x7000 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
mtd-mac-address = <&boardconfig 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
};

View File

@@ -160,7 +160,7 @@
reg = <0x7000 0 0 0 0>;
qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
mtd-mac-address = <&art 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
};

View File

@@ -220,7 +220,7 @@
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,mtd-eeprom-swap;
mtd-mac-address = <&boardconfig 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
};

View File

@@ -128,7 +128,7 @@
&eth0 {
mtd-mac-address = <&boardconfig 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
&gphy0 {
@@ -239,7 +239,7 @@
ralink,mtd-eeprom = <&boardconfig 0x410>;
ralink,mtd-eeprom-swap;
mtd-mac-address = <&boardconfig 0x16>;
mtd-mac-address-increment = <1>;
mac-address-increment = <1>;
};
};

View File

@@ -82,7 +82,7 @@
&eth0 {
mtd-mac-address = <&urlader 0xa91>;
mtd-mac-address-increment = <(-2)>;
mac-address-increment = <(-2)>;
};
&gphy0 {

View File

@@ -204,7 +204,7 @@
qca,no-eeprom;
qca,disable-5ghz;
mtd-mac-address = <&ath9k_cal 0xf100>;
mtd-mac-address-increment = <2>;
mac-address-increment = <2>;
};
};
};

View File

@@ -192,7 +192,7 @@
big-endian;
ieee80211-freq-limit = <5000000 6000000>;
mtd-mac-address = <&romfile 0xf100>;
mtd-mac-address-increment = <2>;
mac-address-increment = <2>;
};
};
};