diff options
Diffstat (limited to 'drivers/misc/spltest_sandbox.c')
-rw-r--r-- | drivers/misc/spltest_sandbox.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c new file mode 100644 index 00000000000..3011a229271 --- /dev/null +++ b/drivers/misc/spltest_sandbox.c @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2016 Google, Inc + * Written by Simon Glass <sjg@chromium.org> + */ + +#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, +}; |