diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-19 10:39:55 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:41 -0700 |
commit | b0603335673e20a075fc1d401bcdb316828e1a6f (patch) | |
tree | 11eb1bdba9739b5ef38c3eb14ce4545485639ec6 | |
parent | f05a7c5ba452c3cee34378ed2ecc206c1605fce1 (diff) | |
download | u-boot-b0603335673e20a075fc1d401bcdb316828e1a6f.zip u-boot-b0603335673e20a075fc1d401bcdb316828e1a6f.tar.gz u-boot-b0603335673e20a075fc1d401bcdb316828e1a6f.tar.bz2 |
sandbox: Add a compatible string for spltest
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>
-rw-r--r-- | drivers/misc/spltest_sandbox.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c index 3ae6707..6b9701a 100644 --- a/drivers/misc/spltest_sandbox.c +++ b/drivers/misc/spltest_sandbox.c @@ -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, }; |