2018-05-07 05:58:06 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2016-07-05 01:58:02 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Google, Inc
|
|
|
|
*/
|
|
|
|
|
2017-07-12 05:30:07 +08:00
|
|
|
#ifndef __DT_STRUCTS
|
|
|
|
#define __DT_STRUCTS
|
2016-07-05 01:58:02 +08:00
|
|
|
|
|
|
|
/* These structures may only be used in SPL */
|
|
|
|
#if CONFIG_IS_ENABLED(OF_PLATDATA)
|
2020-10-03 23:25:21 +08:00
|
|
|
struct driver_info;
|
|
|
|
|
2017-08-30 04:15:56 +08:00
|
|
|
struct phandle_0_arg {
|
2020-10-04 01:31:40 +08:00
|
|
|
uint idx;
|
2017-08-30 04:15:58 +08:00
|
|
|
int arg[0];
|
2017-08-30 04:15:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
struct phandle_1_arg {
|
2020-10-04 01:31:40 +08:00
|
|
|
uint idx;
|
2017-08-30 04:15:58 +08:00
|
|
|
int arg[1];
|
2016-07-05 01:58:02 +08:00
|
|
|
};
|
2017-08-30 04:15:59 +08:00
|
|
|
|
|
|
|
struct phandle_2_arg {
|
2020-10-04 01:31:40 +08:00
|
|
|
uint idx;
|
2017-08-30 04:15:59 +08:00
|
|
|
int arg[2];
|
|
|
|
};
|
2021-03-15 12:25:20 +08:00
|
|
|
|
2017-08-30 04:16:00 +08:00
|
|
|
#include <generated/dt-structs-gen.h>
|
2021-03-15 12:25:20 +08:00
|
|
|
#include <generated/dt-decl.h>
|
2016-07-05 01:58:02 +08:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|