浏览代码

sandbox: Introduce dummy remoteproc nodes

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>
Nishanth Menon 9 年之前
父节点
当前提交
5215940f59
共有 2 个文件被更改,包括 15 次插入0 次删除
  1. 13 0
      arch/sandbox/dts/test.dts
  2. 2 0
      configs/sandbox_defconfig

+ 13 - 0
arch/sandbox/dts/test.dts

@@ -13,6 +13,8 @@
 		eth5 = &eth_5;
 		eth5 = &eth_5;
 		i2c0 = "/i2c@0";
 		i2c0 = "/i2c@0";
 		pci0 = &pci;
 		pci0 = &pci;
+		remoteproc1 = &rproc_1;
+		remoteproc2 = &rproc_2;
 		rtc0 = &rtc_0;
 		rtc0 = &rtc_0;
 		rtc1 = &rtc_1;
 		rtc1 = &rtc_1;
 		spi0 = "/spi@0";
 		spi0 = "/spi@0";
@@ -233,6 +235,17 @@
 		compatible = "sandbox,reset";
 		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 {
 	spi@0 {
 		#address-cells = <1>;
 		#address-cells = <1>;
 		#size-cells = <0>;
 		#size-cells = <0>;

+ 2 - 0
configs/sandbox_defconfig

@@ -63,3 +63,5 @@ CONFIG_UNIT_TEST=y
 CONFIG_UT_TIME=y
 CONFIG_UT_TIME=y
 CONFIG_UT_DM=y
 CONFIG_UT_DM=y
 CONFIG_UT_ENV=y
 CONFIG_UT_ENV=y
+CONFIG_REMOTEPROC_SANDBOX=y
+CONFIG_CMD_REMOTEPROC=y