mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: add common bootstate.dtsi
@ 2024-04-04 10:26 Ahmad Fatoum
  2024-04-04 10:26 ` [PATCH 2/2] ARM: stm32mp: lxa-mc1: add state description Ahmad Fatoum
  2024-04-05 10:40 ` [PATCH 1/2] ARM: dts: add common bootstate.dtsi Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Ahmad Fatoum @ 2024-04-04 10:26 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

For use by at least the LXA MC-1, add a bootstate definition with the
minimal set of variables needed for bootchooser.

We add this to a generic location, so it may be used by other boards as
well.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 arch/arm/dts/bootstate.dtsi | 45 +++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
 create mode 100644 arch/arm/dts/bootstate.dtsi

diff --git a/arch/arm/dts/bootstate.dtsi b/arch/arm/dts/bootstate.dtsi
new file mode 100644
index 000000000000..aa767d4e3b96
--- /dev/null
+++ b/arch/arm/dts/bootstate.dtsi
@@ -0,0 +1,45 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
+
+bootstate {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	system0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		remaining_attempts@0 {
+			reg = <0x0 0x4>;
+			type = "uint32";
+			default = <3>;
+		};
+
+		priority@4 {
+			reg = <0x4 0x4>;
+			type = "uint32";
+			default = <20>;
+		};
+	};
+
+	system1 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+
+		remaining_attempts@8 {
+			reg = <0x8 0x4>;
+			type = "uint32";
+			default = <3>;
+		};
+
+		priority@c {
+			reg = <0xc 0x4>;
+			type = "uint32";
+			default = <10>;
+		};
+	};
+
+	last_chosen@10 {
+		reg = <0x10 0x4>;
+		type = "uint32";
+	};
+};
-- 
2.39.2




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

end of thread, other threads:[~2024-04-05 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-04 10:26 [PATCH 1/2] ARM: dts: add common bootstate.dtsi Ahmad Fatoum
2024-04-04 10:26 ` [PATCH 2/2] ARM: stm32mp: lxa-mc1: add state description Ahmad Fatoum
2024-04-05 10:40 ` [PATCH 1/2] ARM: dts: add common bootstate.dtsi Sascha Hauer

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