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