blob: 9ab4e2524d1884342410557168647f1e2a937224 [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};
21#include <generated/dt-structs.h>
22#endif
23
24#endif