From 373c84c30b95d1def54fb2437a2d52d5168bab42 Mon Sep 17 00:00:00 2001
From: Felix Fietkau <nbd@openwrt.org>
Date: Sat, 3 Jan 2015 18:31:17 +0000
Subject: [PATCH] ramips: fix WSR-1166DHP flash layout

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43818
---
 target/linux/ramips/dts/WSR-1166.dts | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/dts/WSR-1166.dts b/target/linux/ramips/dts/WSR-1166.dts
index 98c1dccd05..de197725a3 100644
--- a/target/linux/ramips/dts/WSR-1166.dts
+++ b/target/linux/ramips/dts/WSR-1166.dts
@@ -46,12 +46,22 @@
 
 				partition@50000 {
 					label = "firmware";
-					reg = <0x50000 0x6b0000>;
+					reg = <0x50000 0x7c0000>;
 				};
 
-				partition@f700000 {
+				partition@810000 {
+					label = "firmware2";
+					reg = <0x810000 0x7c0000>;
+				};
+
+				partition@fd00000 {
 					label = "usercfg";
-					reg = <0x700000 0x100000>;
+					reg = <0xfd0000 0x10000>;
+				};
+
+				partition@fe00000 {
+					label = "board_data";
+					reg = <0xfe0000 0x10000>;
 				};
 			};
 		};
-- 
2.30.2