diff mbox

[LEDE-DEV,5/9] lantiq: VGV7519 - get mac address from board_config partition

Message ID 1464296907-28020-5-git-send-email-dev@kresin.me
State Accepted
Headers show

Commit Message

Mathias Kresin May 26, 2016, 9:08 p.m. UTC
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 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/target/linux/lantiq/dts/VGV7519.dtsi b/target/linux/lantiq/dts/VGV7519.dtsi
index 005cecd..2dddf82 100644
--- a/target/linux/lantiq/dts/VGV7519.dtsi
+++ b/target/linux/lantiq/dts/VGV7519.dtsi
@@ -226,7 +226,7 @@ 
 		#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 {
@@ -260,7 +260,8 @@ 
 		#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 {