mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/6] dts: achilles: add state for bootchooser
@ 2018-09-28 10:42 Steffen Trumtrar
  2018-09-28 10:42 ` [PATCH 2/6] barebox: move mmc partitions to partitions subnode Steffen Trumtrar
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Steffen Trumtrar @ 2018-09-28 10:42 UTC (permalink / raw)
  To: Barebox List; +Cc: Enrico Jorns

From: Enrico Jorns <ejo@pengutronix.de>

Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
---
 arch/arm/dts/socfpga_arria10_achilles.dts | 90 +++++++++++++++++++++++
 1 file changed, 90 insertions(+)

diff --git a/arch/arm/dts/socfpga_arria10_achilles.dts b/arch/arm/dts/socfpga_arria10_achilles.dts
index c03982ef5672..fc75afc79516 100644
--- a/arch/arm/dts/socfpga_arria10_achilles.dts
+++ b/arch/arm/dts/socfpga_arria10_achilles.dts
@@ -23,6 +23,7 @@
 
 	aliases {
 		serial0 = &uart0;
+		state = &state;
 	};
 
 	chosen {
@@ -40,6 +41,90 @@
 		reg = <0x0 0xc0000000>;
 	};
 
+	state: state {
+		magic = <0x4d433230>;
+		compatible = "barebox,state";
+		backend-type = "raw";
+		backend = <&state_mmc>;
+		backend-stridesize = <1024>;
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		bootstate {
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			system0 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
+				remaining_attempts {
+					reg = <0x0 0x4>;
+					type = "uint32";
+					default = <3>;
+				};
+				priority {
+					reg = <0x4 0x4>;
+					type = "uint32";
+					default = <20>;
+				};
+			};
+
+			system1 {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
+				remaining_attempts {
+					reg = <0x10 0x4>;
+					type = "uint32";
+					default = <3>;
+				};
+				priority {
+					reg = <0x14 0x4>;
+					type = "uint32";
+					default = <20>;
+				};
+			};
+			factory {
+				#address-cells = <1>;
+				#size-cells = <1>;
+
+				remaining_attempts {
+					reg = <0x20 0x4>;
+					type = "uint32";
+					default = <3>;
+				};
+				priority {
+					reg = <0x24 0x4>;
+					type = "uint32";
+					default = <10>;
+				};
+			};
+			last_chosen {
+				reg = <0x2C 0x4>;
+				type = "uint32";
+			};
+		};
+	};
+
+	bootstate: bootstate {
+		compatible = "barebox,bootstate";
+		backend-type = "state"; // or "nv", or "efivar"
+		backend = <&state>;
+
+		system0 {
+			default_attempts = <3>;
+		};
+
+		system1 {
+			default_attempts = <3>;
+		};
+
+		factory {
+			default_attempts = <3>;
+		};
+	};
+
 	soc {
 		clkmgr@ffd04000 {
 			clocks {
@@ -120,6 +205,11 @@
 		label = "environment";
 		reg = <0x178000 0x8000>;
 	};
+
+	state_mmc: partition@180000 {
+		label = "state";
+		reg = <0x180000 0xC00>;
+	};
 };
 
 &uart0 {
-- 
2.19.0


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-02  7:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-28 10:42 [PATCH 1/6] dts: achilles: add state for bootchooser Steffen Trumtrar
2018-09-28 10:42 ` [PATCH 2/6] barebox: move mmc partitions to partitions subnode Steffen Trumtrar
2018-09-28 10:42 ` [PATCH 3/6] ARM: socfpga: achilles: move partitions to free disk space Steffen Trumtrar
2018-09-28 10:42 ` [PATCH 4/6] ARM: socfpga: achilles: bitstream will not exceed 32M Steffen Trumtrar
2018-09-28 10:42 ` [PATCH 5/6] ARM: socfpga: achilles: let bootchooser boot from system0 initially Steffen Trumtrar
2018-09-28 10:42 ` [PATCH 6/6] ARM: dts: socfpga: achilles: enable second ethernet port Steffen Trumtrar
2018-10-02  7:23 ` [PATCH 1/6] dts: achilles: add state for bootchooser Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox