blob: 76979e73e174a01959bf08286e0c392a86445d12 [file] [log] [blame]
Simon Glassf24770d2016-07-04 11:58:02 -06001/*
2 * Copyright (c) 2016 Google, Inc
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Philipp Tomsich00b26f72017-07-11 23:30:07 +02007#ifndef __DT_STRUCTS
8#define __DT_STRUCTS
Simon Glassf24770d2016-07-04 11:58:02 -06009
10/* These structures may only be used in SPL */
11#if CONFIG_IS_ENABLED(OF_PLATDATA)
Simon Glass0d154632017-08-29 14:15:56 -060012struct phandle_0_arg {
13 const void *node;
Simon Glassbc796172017-08-29 14:15:58 -060014 int arg[0];
Simon Glass0d154632017-08-29 14:15:56 -060015};
16
17struct phandle_1_arg {
Simon Glassf24770d2016-07-04 11:58:02 -060018 const void *node;
Simon Glassbc796172017-08-29 14:15:58 -060019 int arg[1];
Simon Glassf24770d2016-07-04 11:58:02 -060020};
Simon Glass634eba42017-08-29 14:15:59 -060021
22struct phandle_2_arg {
23 const void *node;
24 int arg[2];
25};
Simon Glassf24770d2016-07-04 11:58:02 -060026#include <generated/dt-structs.h>
27#endif
28
29#endif