]> git.ipfire.org Git - thirdparty/u-boot.git/blame - include/dt-structs.h
Merge https://gitlab.denx.de/u-boot/custodians/u-boot-usb
[thirdparty/u-boot.git] / include / dt-structs.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
f24770d8
SG
2/*
3 * Copyright (c) 2016 Google, Inc
f24770d8
SG
4 */
5
00b26f7c
PT
6#ifndef __DT_STRUCTS
7#define __DT_STRUCTS
f24770d8
SG
8
9/* These structures may only be used in SPL */
10#if CONFIG_IS_ENABLED(OF_PLATDATA)
0d15463c
SG
11struct phandle_0_arg {
12 const void *node;
bc79617f 13 int arg[0];
0d15463c
SG
14};
15
16struct phandle_1_arg {
f24770d8 17 const void *node;
bc79617f 18 int arg[1];
f24770d8 19};
634eba4b
SG
20
21struct phandle_2_arg {
22 const void *node;
23 int arg[2];
24};
b145b45b 25#include <generated/dt-structs-gen.h>
f24770d8
SG
26#endif
27
28#endif