summaryrefslogtreecommitdiff
path: root/drivers/misc/syscon_sandbox.c
blob: e78b6e476eb16d9a31731f40f68f22089df0acd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * Copyright (c) 2015 Google, Inc
 * Written by Simon Glass <sjg@chromium.org>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <common.h>
#include <dm.h>
#include <errno.h>
#include <syscon.h>
#include <asm/test.h>
#include <dm/lists.h>

static const struct udevice_id sandbox_syscon_ids[] = {
	{ .compatible = "sandbox,syscon0", .data = SYSCON0 },
	{ .compatible = "sandbox,syscon1", .data = SYSCON1 },
	{ }
};

U_BOOT_DRIVER(sandbox_syscon) = {
	.name	= "sandbox_syscon",
	.id	= UCLASS_SYSCON,
	.of_match = sandbox_syscon_ids,
};