Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2015 Google, Inc |
| 4 | * Written by Simon Glass <sjg@chromium.org> |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 5 | */ |
| 6 | |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 7 | #include <dm.h> |
| 8 | #include <errno.h> |
| 9 | #include <syscon.h> |
| 10 | #include <asm/test.h> |
| 11 | #include <dm/lists.h> |
| 12 | |
Simon Glass | cd55652 | 2015-07-06 12:54:35 -0600 | [diff] [blame] | 13 | static const struct udevice_id sandbox_syscon_ids[] = { |
| 14 | { .compatible = "sandbox,syscon0", .data = SYSCON0 }, |
| 15 | { .compatible = "sandbox,syscon1", .data = SYSCON1 }, |
| 16 | { } |
| 17 | }; |
| 18 | |
| 19 | U_BOOT_DRIVER(sandbox_syscon) = { |
| 20 | .name = "sandbox_syscon", |
| 21 | .id = UCLASS_SYSCON, |
| 22 | .of_match = sandbox_syscon_ids, |
| 23 | }; |