[U-Boot] [PATCH v11 1/6] sandbox: Put CPUs under a cpu-bus node

Simon Glass sjg at chromium.org
Mon Oct 15 14:17:45 UTC 2018


The CPU uclass expects that all CPUs have a parent device which is a
cpu-bus. Fix up the sandbox test DT to follow this convention. This allow
the code in smbios_write_type4_dm() to work, since it calls
dev_get_parent_platdata() on each CPU.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

Changes in v11:
- Add a new patch to put CPUs under a cpu-bus node

Changes in v9: None
Changes in v7: None
Changes in v5: None
Changes in v4: None
Changes in v3: None

 arch/sandbox/dts/test.dts | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 420b72f4dbc..dc24fef3b21 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -344,16 +344,18 @@
 		mbox-names = "other", "test";
 	};
 
-	cpu-test1 {
-		compatible = "sandbox,cpu_sandbox";
-	};
+	cpus {
+		cpu-test1 {
+			compatible = "sandbox,cpu_sandbox";
+		};
 
-	cpu-test2 {
-		compatible = "sandbox,cpu_sandbox";
-	};
+		cpu-test2 {
+			compatible = "sandbox,cpu_sandbox";
+		};
 
-	cpu-test3 {
-		compatible = "sandbox,cpu_sandbox";
+		cpu-test3 {
+			compatible = "sandbox,cpu_sandbox";
+		};
 	};
 
 	misc-test {
-- 
2.19.1.331.ge82ca0e54c-goog



More information about the U-Boot mailing list