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