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:
committed by
Petr Štetiar
parent
985954ccbd
commit
d284e6ef0f
@@ -289,7 +289,7 @@
|
||||
pinctrl-names = "default";
|
||||
|
||||
mtd-mac-address = <&defaultmac 0x8>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
mac-address-increment = <1>;
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
|
||||
@@ -324,7 +324,7 @@
|
||||
pinctrl-names = "default";
|
||||
|
||||
mtd-mac-address = <&defaultmac 0>;
|
||||
mtd-mac-address-increment = <1>;
|
||||
mac-address-increment = <1>;
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
|
||||
@@ -426,7 +426,7 @@
|
||||
reg = <0x00010000 0 0 0 0>;
|
||||
|
||||
mtd-mac-address = <&art 6>;
|
||||
mtd-mac-address-increment = <(1)>;
|
||||
mac-address-increment = <(1)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -446,7 +446,7 @@
|
||||
reg = <0x00010000 0 0 0 0>;
|
||||
|
||||
mtd-mac-address = <&art 6>;
|
||||
mtd-mac-address-increment = <(2)>;
|
||||
mac-address-increment = <(2)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user