[PATCH v2 1/2] sandbox: Initialize sysreset before relocation

Michal Suchanek msuchanek at suse.de
Mon Oct 10 20:29:39 CEST 2022


Without this the early sysreset code cannot be tested.

Signed-off-by: Michal Suchanek <msuchanek at suse.de>
---
v2: use u-boot,dm-pre-proper rather than u-boot,dm-pre-reloc - sandbox
    SPL cannot build otherwise
---
 arch/sandbox/dts/sandbox.dtsi | 1 +
 arch/sandbox/dts/test.dts     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/arch/sandbox/dts/sandbox.dtsi b/arch/sandbox/dts/sandbox.dtsi
index de7a218f45..14c3f54563 100644
--- a/arch/sandbox/dts/sandbox.dtsi
+++ b/arch/sandbox/dts/sandbox.dtsi
@@ -239,6 +239,7 @@
 
 	reset at 1 {
 		compatible = "sandbox,reset";
+		u-boot,dm-pre-proper;
 	};
 
 	rng {
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 4ee471238e..88ddc7c4da 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -1121,10 +1121,12 @@
 
 	reset at 0 {
 		compatible = "sandbox,warm-reset";
+		u-boot,dm-pre-proper;
 	};
 
 	reset at 1 {
 		compatible = "sandbox,reset";
+		u-boot,dm-pre-proper;
 	};
 
 	resetc: reset-ctl {
-- 
2.37.3



More information about the U-Boot mailing list