]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sandbox: Add a compatible string for spltest
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:39:55 +0000 (10:39 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
At present this driver does not have a compatible string. For it to be
used with the coming of-platadata, it must have one. Update it
accordingly.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/spltest_sandbox.c

index 3ae6707593e57bf3a738af7f227655e711644014..6b9701a06aee68aec7b981fdba3971831f421941 100644 (file)
@@ -8,8 +8,14 @@
 #include <dm.h>
 #include <dt-structs.h>
 
+static const struct udevice_id sandbox_spl_ids[] = {
+       { .compatible = "sandbox,spl-test", },
+       {}  /* sentinel */
+};
+
 U_BOOT_DRIVER(sandbox_spl_test) = {
        .name   = "sandbox_spl_test",
        .id     = UCLASS_MISC,
+       .of_match = sandbox_spl_ids,
        .flags  = DM_FLAG_PRE_RELOC,
 };