aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@kernel.org>2022-10-20 16:30:46 +0300
committerTom Rini <trini@konsulko.com>2022-10-26 15:21:11 -0400
commit2c120375e949807ce8e3b077d6537e2d8d69a87c (patch)
treeddc0bf5aa3151a16dd7b2d1cb45af9a318b59eca /test
parent27e6ebc5ea71c824234e862e55485de841ae29ac (diff)
downloadu-boot-2c120375e949807ce8e3b077d6537e2d8d69a87c.zip
u-boot-2c120375e949807ce8e3b077d6537e2d8d69a87c.tar.gz
u-boot-2c120375e949807ce8e3b077d6537e2d8d69a87c.tar.bz2
dm: memory: Introduce new uclass
Introduce UCLASS_MEMORY for future Memory Controller device drivers. Signed-off-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/dm/Makefile1
-rw-r--r--test/dm/memory.c21
2 files changed, 22 insertions, 0 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile
index 499e769..fd7d310 100644
--- a/test/dm/Makefile
+++ b/test/dm/Makefile
@@ -57,6 +57,7 @@ obj-$(CONFIG_LED) += led.o
obj-$(CONFIG_DM_MAILBOX) += mailbox.o
obj-$(CONFIG_DM_MDIO) += mdio.o
obj-$(CONFIG_DM_MDIO_MUX) += mdio_mux.o
+obj-$(CONFIG_MEMORY) += memory.o
obj-$(CONFIG_MISC) += misc.o
obj-$(CONFIG_DM_MMC) += mmc.o
obj-$(CONFIG_CMD_MUX) += mux-cmd.o
diff --git a/test/dm/memory.c b/test/dm/memory.c
new file mode 100644
index 0000000..7d9500a
--- /dev/null
+++ b/test/dm/memory.c
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * (C) Copyright 2022
+ * Texas Instruments Incorporated, <www.ti.com>
+ */
+
+#include <dm.h>
+#include <dm/test.h>
+#include <test/test.h>
+#include <test/ut.h>
+
+static int dm_test_memory(struct unit_test_state *uts)
+{
+ struct udevice *dev;
+
+ ut_assertok(uclass_first_device_err(UCLASS_MEMORY, &dev));
+
+ return 0;
+}
+
+DM_TEST(dm_test_memory, UT_TESTF_SCAN_FDT);