blob: 924d51fc522c6a416010b6873a9842da028c1ae3 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Simon Glassda59fae2016-07-04 11:58:02 -06002/*
3 * Copyright (c) 2016 Google, Inc
Simon Glassda59fae2016-07-04 11:58:02 -06004 */
5
Philipp Tomsich7033e0d2017-07-11 23:30:07 +02006#ifndef __DT_STRUCTS
7#define __DT_STRUCTS
Simon Glassda59fae2016-07-04 11:58:02 -06008
9/* These structures may only be used in SPL */
10#if CONFIG_IS_ENABLED(OF_PLATDATA)
Simon Glasse94414b2017-08-29 14:15:56 -060011struct phandle_0_arg {
12 const void *node;
Simon Glassfdec5802017-08-29 14:15:58 -060013 int arg[0];
Simon Glasse94414b2017-08-29 14:15:56 -060014};
15
16struct phandle_1_arg {
Simon Glassda59fae2016-07-04 11:58:02 -060017 const void *node;
Simon Glassfdec5802017-08-29 14:15:58 -060018 int arg[1];
Simon Glassda59fae2016-07-04 11:58:02 -060019};
Simon Glass3deeb472017-08-29 14:15:59 -060020
21struct phandle_2_arg {
22 const void *node;
23 int arg[2];
24};
Simon Glass0dec7ad2017-08-29 14:16:00 -060025#include <generated/dt-structs-gen.h>
Simon Glassda59fae2016-07-04 11:58:02 -060026#endif
27
28#endif