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