blob: f0e1c9cb901c88ba989f008e88be4caf0bb2cfd9 [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 Glass08c3b882020-10-03 09:25:21 -060011struct driver_info;
12
Simon Glass0d154632017-08-29 14:15:56 -060013struct phandle_0_arg {
Simon Glass8a38abf2020-10-03 11:31:40 -060014 uint idx;
Simon Glassbc796172017-08-29 14:15:58 -060015 int arg[0];
Simon Glass0d154632017-08-29 14:15:56 -060016};
17
18struct phandle_1_arg {
Simon Glass8a38abf2020-10-03 11:31:40 -060019 uint idx;
Simon Glassbc796172017-08-29 14:15:58 -060020 int arg[1];
Simon Glassf24770d2016-07-04 11:58:02 -060021};
Simon Glass634eba42017-08-29 14:15:59 -060022
23struct phandle_2_arg {
Simon Glass8a38abf2020-10-03 11:31:40 -060024 uint idx;
Simon Glass634eba42017-08-29 14:15:59 -060025 int arg[2];
26};
Simon Glassb145b452017-08-29 14:16:00 -060027#include <generated/dt-structs-gen.h>
Simon Glassf24770d2016-07-04 11:58:02 -060028#endif
29
30#endif