avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
27
u-boot/drivers/misc/syscon_sandbox.c
Normal file
27
u-boot/drivers/misc/syscon_sandbox.c
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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>
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
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,
|
||||
};
|
||||
Reference in New Issue
Block a user