Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 2 | /* |
3 | * Copyright (c) 2016 Google, Inc | ||||
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 4 | */ |
5 | |||||
Philipp Tomsich | 7033e0d | 2017-07-11 23:30:07 +0200 | [diff] [blame] | 6 | #ifndef __DT_STRUCTS |
7 | #define __DT_STRUCTS | ||||
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 8 | |
9 | /* These structures may only be used in SPL */ | ||||
10 | #if CONFIG_IS_ENABLED(OF_PLATDATA) | ||||
Simon Glass | e94414b | 2017-08-29 14:15:56 -0600 | [diff] [blame] | 11 | struct phandle_0_arg { |
12 | const void *node; | ||||
Simon Glass | fdec580 | 2017-08-29 14:15:58 -0600 | [diff] [blame] | 13 | int arg[0]; |
Simon Glass | e94414b | 2017-08-29 14:15:56 -0600 | [diff] [blame] | 14 | }; |
15 | |||||
16 | struct phandle_1_arg { | ||||
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 17 | const void *node; |
Simon Glass | fdec580 | 2017-08-29 14:15:58 -0600 | [diff] [blame] | 18 | int arg[1]; |
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 19 | }; |
Simon Glass | 3deeb47 | 2017-08-29 14:15:59 -0600 | [diff] [blame] | 20 | |
21 | struct phandle_2_arg { | ||||
22 | const void *node; | ||||
23 | int arg[2]; | ||||
24 | }; | ||||
Simon Glass | 0dec7ad | 2017-08-29 14:16:00 -0600 | [diff] [blame] | 25 | #include <generated/dt-structs-gen.h> |
Simon Glass | da59fae | 2016-07-04 11:58:02 -0600 | [diff] [blame] | 26 | #endif |
27 | |||||
28 | #endif |