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