blob: e78b6e476eb16d9a31731f40f68f22089df0acd3 [file] [log] [blame]
Simon Glasscd556522015-07-06 12:54:35 -06001/*
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
Simon Glasscd556522015-07-06 12:54:35 -060015static const struct udevice_id sandbox_syscon_ids[] = {
16 { .compatible = "sandbox,syscon0", .data = SYSCON0 },
17 { .compatible = "sandbox,syscon1", .data = SYSCON1 },
18 { }
19};
20
21U_BOOT_DRIVER(sandbox_syscon) = {
22 .name = "sandbox_syscon",
23 .id = UCLASS_SYSCON,
24 .of_match = sandbox_syscon_ids,
25};