We need partition table for barebox update handler
and for barebox environment

Signed-off-by: Oleksij Rempel <li...@rempel-privat.de>
---
 arch/mips/dts/tplink-mr3020.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index 1e843ee00..eaae11edd 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -4,4 +4,23 @@
        aliases {
                spiflash = &spiflash;
        };
+
+       chosen {
+               environment@0 {
+                       compatible = "barebox,environment";
+                       device-path = &spiflash, "partname:barebox-environment";
+               };
+       };
+};
+
+&spiflash {
+       partition@0 {
+               label = "barebox";
+               reg = <0 0x80000>;
+       };
+
+       partition@80000 {
+               label = "barebox-environment";
+               reg = <0x80000 0x10000>;
+       };
 };
-- 
2.11.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to