[PATCH 2/6] barebox: move mmc partitions to partitions subnode

Steffen Trumtrar s.trumtrar at pengutronix.de
Fri Sep 28 03:42:02 PDT 2018


From: Enrico Jorns <ejo at pengutronix.de>

Linux kernel implicitly adds this, thus we have to add them explicitly
to stay compatible

Signed-off-by: Enrico Jorns <ejo at pengutronix.de>
---
 arch/arm/dts/socfpga_arria10_achilles.dts | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts/socfpga_arria10_achilles.dts
index fc75afc79516..5c08be82d67f 100644
--- a/arch/arm/dts/socfpga_arria10_achilles.dts
+++ b/arch/arm/dts/socfpga_arria10_achilles.dts
@@ -201,14 +201,19 @@
 	bus-width = <1>;
 	status = "okay";
 
-	environment_mmc: partition at 178000 {
-		label = "environment";
-		reg = <0x178000 0x8000>;
-	};
+	partitions {
+		compatible = "fixed-partitions";
+		#size-cells = <1>;
+		#address-cells = <1>;
+		environment_mmc: partition at 178000 {
+			label = "environment";
+			reg = <0x178000 0x8000>;
+		};
 
-	state_mmc: partition at 180000 {
-		label = "state";
-		reg = <0x180000 0xC00>;
+		state_mmc: partition at 180000 {
+			label = "state";
+			reg = <0x180000 0xC00>;
+		};
 	};
 };
 
-- 
2.19.0




More information about the barebox mailing list