[U-Boot] [PATCH 3/3] sandbox: Introduce dummy remoteproc nodes

Nishanth Menon nm at ti.com
Mon Aug 24 19:28:37 CEST 2015


Introduce dummy devices for sandbox remoteproc device and enable it by
default

Signed-off-by: Nishanth Menon <nm at ti.com>
---
 arch/sandbox/dts/test.dts | 13 +++++++++++++
 configs/sandbox_defconfig |  2 ++
 2 files changed, 15 insertions(+)

diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index c948df8c864b..df9b71310dbe 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -25,6 +25,8 @@
 		usb0 = &usb_0;
 		usb1 = &usb_1;
 		usb2 = &usb_2;
+		remoteproc1 = &rproc_1;
+		remoteproc2 = &rproc_2;
 	};
 
 	a-test {
@@ -296,6 +298,17 @@
 		status = "disabled";
 	};
 
+
+	rproc_1: rproc at 1 {
+		compatible = "sandbox,test-processor";
+		remoteproc-name = "remoteproc-test-dev1";
+	};
+
+	rproc_2: rproc at 2 {
+		compatible = "sandbox,test-processor";
+		internal-memory-mapped;
+		remoteproc-name = "remoteproc-test-dev2";
+	};
 };
 
 #include "sandbox_pmic.dtsi"
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index 874a26b572aa..4a2750c154bc 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -54,3 +54,5 @@ CONFIG_LED_GPIO=y
 CONFIG_SYSCON=y
 CONFIG_REGMAP=y
 CONFIG_DEVRES=y
+CONFIG_DM_TESTPROC_SANDBOX=y
+CONFIG_CMD_REMOTEPROC=y
-- 
2.1.4



More information about the U-Boot mailing list