blob: ccfab3ef987d1a569bf549505c182339da270de4 [file] [log] [blame]
Simon Glass04035fd2015-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
15DECLARE_GLOBAL_DATA_PTR;
16
17static const struct udevice_id sandbox_syscon_ids[] = {
18 { .compatible = "sandbox,syscon0", .data = SYSCON0 },
19 { .compatible = "sandbox,syscon1", .data = SYSCON1 },
20 { }
21};
22
23U_BOOT_DRIVER(sandbox_syscon) = {
24 .name = "sandbox_syscon",
25 .id = UCLASS_SYSCON,
26 .of_match = sandbox_syscon_ids,
27};