lantiq: VGV7519 - get mac address from board_config partition
authorMathias Kresin <dev@kresin.me>
Thu, 26 May 2016 21:08:23 +0000 (23:08 +0200)
committerJohn Crispin <john@phrozen.org>
Fri, 27 May 2016 13:50:17 +0000 (15:50 +0200)
Use the mac address stored in the board_config partition instead of a
static one.

Signed-off-by: Mathias Kresin <dev@kresin.me>
target/linux/lantiq/dts/VGV7519.dtsi

index 005cecdddb86b1de79fdb13a9b192a21974b5e96..2dddf825401bf0386778dfd92691d27ba785e9d6 100644 (file)
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0>;
-               mac-address = [ 00 11 22 33 44 55 ];
+               mtd-mac-address = <&boardconfig 0x16>;
                lantiq,switch;
 
                ethernet@0 {
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <1>;
-               mac-address = [ 00 11 22 33 44 56 ];
+               mtd-mac-address = <&boardconfig 0x16>;
+               mtd-mac-address-increment = <2>;
                lantiq,wan;
 
                ethernet@5 {