Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2016 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 5 | */ |
| 6 | |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 7 | #include <dm.h> |
| 8 | #include <dt-structs.h> |
| 9 | |
Simon Glass | e5b6d5f | 2020-12-19 10:39:55 -0700 | [diff] [blame] | 10 | static const struct udevice_id sandbox_spl_ids[] = { |
| 11 | { .compatible = "sandbox,spl-test", }, |
| 12 | {} /* sentinel */ |
| 13 | }; |
| 14 | |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 15 | U_BOOT_DRIVER(sandbox_spl_test) = { |
| 16 | .name = "sandbox_spl_test", |
| 17 | .id = UCLASS_MISC, |
Simon Glass | e5b6d5f | 2020-12-19 10:39:55 -0700 | [diff] [blame] | 18 | .of_match = sandbox_spl_ids, |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 19 | .flags = DM_FLAG_PRE_RELOC, |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 20 | }; |