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 | |
| 7 | #include <common.h> |
| 8 | #include <dm.h> |
| 9 | #include <dt-structs.h> |
| 10 | |
Simon Glass | e5b6d5f | 2020-12-19 10:39:55 -0700 | [diff] [blame] | 11 | static const struct udevice_id sandbox_spl_ids[] = { |
| 12 | { .compatible = "sandbox,spl-test", }, |
| 13 | {} /* sentinel */ |
| 14 | }; |
| 15 | |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 16 | U_BOOT_DRIVER(sandbox_spl_test) = { |
| 17 | .name = "sandbox_spl_test", |
| 18 | .id = UCLASS_MISC, |
Simon Glass | e5b6d5f | 2020-12-19 10:39:55 -0700 | [diff] [blame] | 19 | .of_match = sandbox_spl_ids, |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 20 | .flags = DM_FLAG_PRE_RELOC, |
Simon Glass | 750c482 | 2016-07-04 11:58:01 -0600 | [diff] [blame] | 21 | }; |