[V3,3/4] sandbox: Introduce dummy remoteproc nodes

Message ID 1442522562-20764-4-git-send-email-nm@ti.com
State Accepted
Commit 5215940f599790466e90fbe744d9bf7e956bf2e2
Headers show

Commit Message

Nishanth Menon Sept. 17, 2015, 8:42 p.m.
Introduce dummy devices for sandbox remoteproc device and enable it by
default

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Nishanth Menon <nm@ti.com>
---

Changes since V2:
	- Picked up Simon's reviewed-by from V2.

V2: https://patchwork.ozlabs.org/patch/511750/
V1: https://patchwork.ozlabs.org/patch/510196/

 arch/sandbox/dts/test.dts | 13 +++++++++++++
 configs/sandbox_defconfig |  2 ++
 2 files changed, 15 insertions(+)

Comments

Simon Glass Oct. 1, 2015, 10:59 p.m. | #1
On Thursday, 17 September 2015, Nishanth Menon <nm@ti.com> wrote:
>
> Introduce dummy devices for sandbox remoteproc device and enable it by
> default
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> ---
>
> Changes since V2:
>         - Picked up Simon's reviewed-by from V2.
>
> V2: https://patchwork.ozlabs.org/patch/511750/
> V1: https://patchwork.ozlabs.org/patch/510196/
>
>  arch/sandbox/dts/test.dts | 13 +++++++++++++
>  configs/sandbox_defconfig |  2 ++
>  2 files changed, 15 insertions(+)


 Acked-by: Simon Glass <sjg@chromium.org>
Simon Glass Oct. 3, 2015, 4:19 p.m. | #2
Acked-by: Simon Glass <sjg@chromium.org>
Tom Rini Oct. 22, 2015, 9:20 p.m. | #3
On Thu, Sep 17, 2015 at 03:42:41PM -0500, Nishanth Menon wrote:

> Introduce dummy devices for sandbox remoteproc device and enable it by
> default
> 
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Signed-off-by: Nishanth Menon <nm@ti.com>
> Acked-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!

Patch

diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index f5217fb87778..730de8a57ffc 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -13,6 +13,8 @@ 
 		eth5 = &eth_5;
 		i2c0 = "/i2c@0";
 		pci0 = &pci;
+		remoteproc1 = &rproc_1;
+		remoteproc2 = &rproc_2;
 		rtc0 = &rtc_0;
 		rtc1 = &rtc_1;
 		spi0 = "/spi@0";
@@ -233,6 +235,17 @@ 
 		compatible = "sandbox,reset";
 	};
 
+	rproc_1: rproc@1 {
+		compatible = "sandbox,test-processor";
+		remoteproc-name = "remoteproc-test-dev1";
+	};
+
+	rproc_2: rproc@2 {
+		compatible = "sandbox,test-processor";
+		internal-memory-mapped;
+		remoteproc-name = "remoteproc-test-dev2";
+	};
+
 	spi@0 {
 		#address-cells = <1>;
 		#size-cells = <0>;
diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig
index e9e1597f9acf..b9ba04acebe5 100644
--- a/configs/sandbox_defconfig
+++ b/configs/sandbox_defconfig
@@ -61,3 +61,5 @@  CONFIG_UNIT_TEST=y
 CONFIG_UT_TIME=y
 CONFIG_UT_DM=y
 CONFIG_UT_ENV=y
+CONFIG_REMOTEPROC_SANDBOX=y
+CONFIG_CMD_REMOTEPROC=y