]> git.sur5r.net Git - u-boot/commitdiff
sandbox: Introduce dummy remoteproc nodes
authorNishanth Menon <nm@ti.com>
Thu, 17 Sep 2015 20:42:41 +0000 (15:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Oct 2015 18:18:39 +0000 (14:18 -0400)
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>
arch/sandbox/dts/test.dts
configs/sandbox_defconfig

index f5217fb87778614f783483ef7b0ee774b64ca2c3..730de8a57ffca2f4bc159e54e2049874d4fb42ad 100644 (file)
@@ -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";
                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>;
index 15e7b50a463e7b87ef365fa54ed5e46b215b6f6b..67ae99b638ce629023ed8172254739e4cdbb7808 100644 (file)
@@ -63,3 +63,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