xref: /openbmc/u-boot/include/dt-structs.h (revision cbd2fba1)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (c) 2016 Google, Inc
4  */
5 
6 #ifndef __DT_STRUCTS
7 #define __DT_STRUCTS
8 
9 /* These structures may only be used in SPL */
10 #if CONFIG_IS_ENABLED(OF_PLATDATA)
11 struct phandle_0_arg {
12 	const void *node;
13 	int arg[0];
14 };
15 
16 struct phandle_1_arg {
17 	const void *node;
18 	int arg[1];
19 };
20 
21 struct phandle_2_arg {
22 	const void *node;
23 	int arg[2];
24 };
25 #include <generated/dt-structs-gen.h>
26 #endif
27 
28 #endif
29