aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorGrygorii Strashko <grygorii.strashko@ti.com>2018-11-28 19:17:51 +0100
committerTom Rini <trini@konsulko.com>2018-12-07 08:13:45 -0500
commitb3309918740f00735d414c44ed2a3f26c418715b (patch)
treefe3b17919c591818ee251996f09a483e3626204c /arch/sandbox
parent27ab27f85057801953d65d563f2340a22859bbbe (diff)
downloadu-boot-b3309918740f00735d414c44ed2a3f26c418715b.zip
u-boot-b3309918740f00735d414c44ed2a3f26c418715b.tar.gz
u-boot-b3309918740f00735d414c44ed2a3f26c418715b.tar.bz2
test: dma: add dma-uclass test
Add a sandbox DMA driver implementation (provider) and corresponding DM test. Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/dts/test.dts8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/sandbox/dts/test.dts b/arch/sandbox/dts/test.dts
index 12d39d8..082fcec 100644
--- a/arch/sandbox/dts/test.dts
+++ b/arch/sandbox/dts/test.dts
@@ -746,6 +746,14 @@
hwspinlock@0 {
compatible = "sandbox,hwspinlock";
};
+
+ dma: dma {
+ compatible = "sandbox,dma";
+ #dma-cells = <1>;
+
+ dmas = <&dma 0>, <&dma 1>, <&dma 2>;
+ dma-names = "m2m", "tx0", "rx0";
+ };
};
#include "sandbox_pmic.dtsi"