]> git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/misc/syscon_sandbox.c
Remove CONFIG_SYS_BOOTCOUNT_SINGLEWORD
[people/ms/u-boot.git] / drivers / misc / syscon_sandbox.c
1 /*
2 * Copyright (c) 2015 Google, Inc
3 * Written by Simon Glass <sjg@chromium.org>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8 #include <common.h>
9 #include <dm.h>
10 #include <errno.h>
11 #include <syscon.h>
12 #include <asm/test.h>
13 #include <dm/lists.h>
14
15 DECLARE_GLOBAL_DATA_PTR;
16
17 static const struct udevice_id sandbox_syscon_ids[] = {
18 { .compatible = "sandbox,syscon0", .data = SYSCON0 },
19 { .compatible = "sandbox,syscon1", .data = SYSCON1 },
20 { }
21 };
22
23 U_BOOT_DRIVER(sandbox_syscon) = {
24 .name = "sandbox_syscon",
25 .id = UCLASS_SYSCON,
26 .of_match = sandbox_syscon_ids,
27 };